Interface GetEffectiveRecommendationPreferencesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ComputeOptimizerResponse.Builder,CopyableBuilder<GetEffectiveRecommendationPreferencesResponse.Builder,,GetEffectiveRecommendationPreferencesResponse> SdkBuilder<GetEffectiveRecommendationPreferencesResponse.Builder,,GetEffectiveRecommendationPreferencesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetEffectiveRecommendationPreferencesResponse
-
Method Summary
Modifier and TypeMethodDescriptionenhancedInfrastructureMetrics(String enhancedInfrastructureMetrics) The status of the enhanced infrastructure metrics recommendation preference.enhancedInfrastructureMetrics(EnhancedInfrastructureMetrics enhancedInfrastructureMetrics) The status of the enhanced infrastructure metrics recommendation preference.externalMetricsPreference(Consumer<ExternalMetricsPreference.Builder> externalMetricsPreference) The provider of the external metrics recommendation preference.externalMetricsPreference(ExternalMetricsPreference externalMetricsPreference) The provider of the external metrics recommendation preference.Methods inherited from interface software.amazon.awssdk.services.computeoptimizer.model.ComputeOptimizerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
enhancedInfrastructureMetrics
GetEffectiveRecommendationPreferencesResponse.Builder enhancedInfrastructureMetrics(String enhancedInfrastructureMetrics) The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
A status of
Activeconfirms that the preference is applied in the latest recommendation refresh, and a status ofInactiveconfirms that it's not yet applied to recommendations.To validate whether the preference is applied to your last generated set of recommendations, review the
effectiveRecommendationPreferencesvalue in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
enhancedInfrastructureMetrics- The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.A status of
Activeconfirms that the preference is applied in the latest recommendation refresh, and a status ofInactiveconfirms that it's not yet applied to recommendations.To validate whether the preference is applied to your last generated set of recommendations, review the
effectiveRecommendationPreferencesvalue in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enhancedInfrastructureMetrics
GetEffectiveRecommendationPreferencesResponse.Builder enhancedInfrastructureMetrics(EnhancedInfrastructureMetrics enhancedInfrastructureMetrics) The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.
A status of
Activeconfirms that the preference is applied in the latest recommendation refresh, and a status ofInactiveconfirms that it's not yet applied to recommendations.To validate whether the preference is applied to your last generated set of recommendations, review the
effectiveRecommendationPreferencesvalue in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
enhancedInfrastructureMetrics- The status of the enhanced infrastructure metrics recommendation preference. Considers all applicable preferences that you might have set at the resource, account, and organization level.A status of
Activeconfirms that the preference is applied in the latest recommendation refresh, and a status ofInactiveconfirms that it's not yet applied to recommendations.To validate whether the preference is applied to your last generated set of recommendations, review the
effectiveRecommendationPreferencesvalue in the response of the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
externalMetricsPreference
GetEffectiveRecommendationPreferencesResponse.Builder externalMetricsPreference(ExternalMetricsPreference externalMetricsPreference) The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
If the preference is applied in the latest recommendation refresh, an object with a valid
sourcevalue appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.To validate whether the preference is applied to your last generated set of recommendations, review the
effectiveRecommendationPreferencesvalue in the response of the GetEC2InstanceRecommendations actions.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
externalMetricsPreference- The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.If the preference is applied in the latest recommendation refresh, an object with a valid
sourcevalue appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.To validate whether the preference is applied to your last generated set of recommendations, review the
effectiveRecommendationPreferencesvalue in the response of the GetEC2InstanceRecommendations actions.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalMetricsPreference
default GetEffectiveRecommendationPreferencesResponse.Builder externalMetricsPreference(Consumer<ExternalMetricsPreference.Builder> externalMetricsPreference) The provider of the external metrics recommendation preference. Considers all applicable preferences that you might have set at the account and organization level.
If the preference is applied in the latest recommendation refresh, an object with a valid
sourcevalue appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.To validate whether the preference is applied to your last generated set of recommendations, review the
effectiveRecommendationPreferencesvalue in the response of the GetEC2InstanceRecommendations actions.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
This is a convenience method that creates an instance of theExternalMetricsPreference.Builderavoiding the need to create one manually viaExternalMetricsPreference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexternalMetricsPreference(ExternalMetricsPreference).- Parameters:
externalMetricsPreference- a consumer that will call methods onExternalMetricsPreference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-