public PutRecommendationPreferencesRequest withEnhancedInfrastructureMetrics(EnhancedInfrastructureMetrics enhancedInfrastructureMetrics) {
        this.enhancedInfrastructureMetrics = enhancedInfrastructureMetrics.toString();
        return this;
    }
<p>
The status of the enhanced infrastructure metrics recommendation preference to create or update.
</p>
<p>
Specify the <code>Active</code> status to activate the preference, or specify <code>Inactive</code> to deactivate
the preference.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html">Enhanced
infrastructure metrics</a> in the <i>Compute Optimizer User Guide</i>.
</p>

@param enhancedInfrastructureMetrics
       The status of the enhanced infrastructure metrics recommendation preference to create or update.</p>
       <p>
       Specify the <code>Active</code> status to activate the preference, or specify <code>Inactive</code> to
       deactivate the preference.
       </p>
       <p>
       For more information, see <a
       href="https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html"
       >Enhanced infrastructure metrics</a> in the <i>Compute Optimizer User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see EnhancedInfrastructureMetrics
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/PutRecommendationPreferencesRequest.java