public Scope getScope() {
        return this.scope;
    }
<p>
An object that describes the scope of the recommendation preference to create.
</p>
<p>
You can create recommendation preferences at the organization level (for management accounts of an organization
only), account level, and resource level. For more information, see <a
href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Activating
enhanced infrastructure metrics</a> in the <i>Compute Optimizer User Guide</i>.
</p>
<note>
<p>
You cannot create recommendation preferences for Auto Scaling groups at the organization and account levels. You
can create recommendation preferences for Auto Scaling groups only at the resource level by specifying a scope
name of <code>ResourceArn</code> and a scope value of the Auto Scaling group Amazon Resource Name (ARN). This
will configure the preference for all instances that are part of the specified Auto Scaling group. You also
cannot create recommendation preferences at the resource level for instances that are part of an Auto Scaling
group. You can create recommendation preferences at the resource level only for standalone instances.
</p>
</note>

@return An object that describes the scope of the recommendation preference to create.</p>
        <p>
        You can create recommendation preferences at the organization level (for management accounts of an
        organization only), account level, and resource level. For more information, see <a
        href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html"
        >Activating enhanced infrastructure metrics</a> in the <i>Compute Optimizer User Guide</i>.
        </p>
        <note>
        <p>
        You cannot create recommendation preferences for Auto Scaling groups at the organization and account
        levels. You can create recommendation preferences for Auto Scaling groups only at the resource level by
        specifying a scope name of <code>ResourceArn</code> and a scope value of the Auto Scaling group Amazon
        Resource Name (ARN). This will configure the preference for all instances that are part of the specified
        Auto Scaling group. You also cannot create recommendation preferences at the resource level for instances
        that are part of an Auto Scaling group. You can create recommendation preferences at the resource level
        only for standalone instances.
        </p>
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/PutRecommendationPreferencesRequest.java