Interface RecommendationPreferencesDetail.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RecommendationPreferencesDetail.Builder,
,RecommendationPreferencesDetail> SdkBuilder<RecommendationPreferencesDetail.Builder,
,RecommendationPreferencesDetail> SdkPojo
- Enclosing class:
RecommendationPreferencesDetail
-
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) An object that describes the external metrics recommendation preference.externalMetricsPreference
(ExternalMetricsPreference externalMetricsPreference) An object that describes the external metrics recommendation preference.inferredWorkloadTypes
(String inferredWorkloadTypes) The status of the inferred workload types recommendation preference.inferredWorkloadTypes
(InferredWorkloadTypesPreference inferredWorkloadTypes) The status of the inferred workload types recommendation preference.lookBackPeriod
(String lookBackPeriod) The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed.lookBackPeriod
(LookBackPeriodPreference lookBackPeriod) The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed.preferredResources
(Collection<EffectivePreferredResource> preferredResources) The preference to control which resource type values are considered when generating rightsizing recommendations.preferredResources
(Consumer<EffectivePreferredResource.Builder>... preferredResources) The preference to control which resource type values are considered when generating rightsizing recommendations.preferredResources
(EffectivePreferredResource... preferredResources) The preference to control which resource type values are considered when generating rightsizing recommendations.resourceType
(String resourceType) The target resource type of the recommendation preference to create.resourceType
(ResourceType resourceType) The target resource type of the recommendation preference to create.savingsEstimationMode
(String savingsEstimationMode) Describes the savings estimation mode used for calculating savings opportunity.savingsEstimationMode
(SavingsEstimationMode savingsEstimationMode) Describes the savings estimation mode used for calculating savings opportunity.scope
(Consumer<Scope.Builder> scope) An object that describes the scope of the recommendation preference.An object that describes the scope of the recommendation preference.utilizationPreferences
(Collection<UtilizationPreference> utilizationPreferences) The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom.utilizationPreferences
(Consumer<UtilizationPreference.Builder>... utilizationPreferences) The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom.utilizationPreferences
(UtilizationPreference... utilizationPreferences) The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
scope
An object that describes the scope of the recommendation preference.
Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
scope
- An object that describes the scope of the recommendation preference.Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
An object that describes the scope of the recommendation preference.
Recommendation preferences can be created at the organization level (for management accounts of an organization only), account level, and resource level. For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
This is a convenience method that creates an instance of theScope.Builder
avoiding the need to create one manually viaScope.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscope(Scope)
.- Parameters:
scope
- a consumer that will call methods onScope.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The target resource type of the recommendation preference to create.
The
Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. TheAutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.- Parameters:
resourceType
- The target resource type of the recommendation preference to create.The
Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. TheAutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The target resource type of the recommendation preference to create.
The
Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. TheAutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.- Parameters:
resourceType
- The target resource type of the recommendation preference to create.The
Ec2Instance
option encompasses standalone instances and instances that are part of Auto Scaling groups. TheAutoScalingGroup
option encompasses only instances that are part of an Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enhancedInfrastructureMetrics
RecommendationPreferencesDetail.Builder enhancedInfrastructureMetrics(String enhancedInfrastructureMetrics) The status of the enhanced infrastructure metrics recommendation preference.
When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
enhancedInfrastructureMetrics
- The status of the enhanced infrastructure metrics recommendation preference.When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.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
RecommendationPreferencesDetail.Builder enhancedInfrastructureMetrics(EnhancedInfrastructureMetrics enhancedInfrastructureMetrics) The status of the enhanced infrastructure metrics recommendation preference.
When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
enhancedInfrastructureMetrics
- The status of the enhanced infrastructure metrics recommendation preference.When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.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:
-
inferredWorkloadTypes
The status of the inferred workload types recommendation preference.
When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.- Parameters:
inferredWorkloadTypes
- The status of the inferred workload types recommendation preference.When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inferredWorkloadTypes
RecommendationPreferencesDetail.Builder inferredWorkloadTypes(InferredWorkloadTypesPreference inferredWorkloadTypes) The status of the inferred workload types recommendation preference.
When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.- Parameters:
inferredWorkloadTypes
- The status of the inferred workload types recommendation preference.When the recommendations page is refreshed, a status of
Active
confirms that the preference is applied to the recommendations, and a status ofInactive
confirms that the preference isn't yet applied to recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
externalMetricsPreference
RecommendationPreferencesDetail.Builder externalMetricsPreference(ExternalMetricsPreference externalMetricsPreference) An object that describes the external metrics recommendation preference.
If the preference is applied in the latest recommendation refresh, an object with a valid
source
value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.- Parameters:
externalMetricsPreference
- An object that describes the external metrics recommendation preference.If the preference is applied in the latest recommendation refresh, an object with a valid
source
value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalMetricsPreference
default RecommendationPreferencesDetail.Builder externalMetricsPreference(Consumer<ExternalMetricsPreference.Builder> externalMetricsPreference) An object that describes the external metrics recommendation preference.
If the preference is applied in the latest recommendation refresh, an object with a valid
This is a convenience method that creates an instance of thesource
value appears in the response. If the preference isn't applied to the recommendations already, then this object doesn't appear in the response.ExternalMetricsPreference.Builder
avoiding the need to create one manually viaExternalMetricsPreference.builder()
.When the
Consumer
completes,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:
-
lookBackPeriod
The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed. If the preference isn’t set, this object is null.
- Parameters:
lookBackPeriod
- The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed. If the preference isn’t set, this object is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookBackPeriod
The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed. If the preference isn’t set, this object is null.
- Parameters:
lookBackPeriod
- The preference to control the number of days the utilization metrics of the Amazon Web Services resource are analyzed. If the preference isn’t set, this object is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
utilizationPreferences
RecommendationPreferencesDetail.Builder utilizationPreferences(Collection<UtilizationPreference> utilizationPreferences) The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. If the preference isn’t set, this object is null.
This preference is only available for the Amazon EC2 instance resource type.
- Parameters:
utilizationPreferences
- The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. If the preference isn’t set, this object is null.This preference is only available for the Amazon EC2 instance resource type.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationPreferences
RecommendationPreferencesDetail.Builder utilizationPreferences(UtilizationPreference... utilizationPreferences) The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. If the preference isn’t set, this object is null.
This preference is only available for the Amazon EC2 instance resource type.
- Parameters:
utilizationPreferences
- The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. If the preference isn’t set, this object is null.This preference is only available for the Amazon EC2 instance resource type.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationPreferences
RecommendationPreferencesDetail.Builder utilizationPreferences(Consumer<UtilizationPreference.Builder>... utilizationPreferences) The preference to control the resource’s CPU utilization threshold, CPU utilization headroom, and memory utilization headroom. If the preference isn’t set, this object is null.
This preference is only available for the Amazon EC2 instance resource type.
UtilizationPreference.Builder
avoiding the need to create one manually viaUtilizationPreference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toutilizationPreferences(List<UtilizationPreference>)
.- Parameters:
utilizationPreferences
- a consumer that will call methods onUtilizationPreference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
preferredResources
RecommendationPreferencesDetail.Builder preferredResources(Collection<EffectivePreferredResource> preferredResources) The preference to control which resource type values are considered when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. If the preference isn’t set, this object is null.
- Parameters:
preferredResources
- The preference to control which resource type values are considered when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. If the preference isn’t set, this object is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredResources
RecommendationPreferencesDetail.Builder preferredResources(EffectivePreferredResource... preferredResources) The preference to control which resource type values are considered when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. If the preference isn’t set, this object is null.
- Parameters:
preferredResources
- The preference to control which resource type values are considered when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. If the preference isn’t set, this object is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredResources
RecommendationPreferencesDetail.Builder preferredResources(Consumer<EffectivePreferredResource.Builder>... preferredResources) The preference to control which resource type values are considered when generating rightsizing recommendations. This object resolves any wildcard expressions and returns the effective list of candidate resource type values. If the preference isn’t set, this object is null.
This is a convenience method that creates an instance of theEffectivePreferredResource.Builder
avoiding the need to create one manually viaEffectivePreferredResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topreferredResources(List<EffectivePreferredResource>)
.- Parameters:
preferredResources
- a consumer that will call methods onEffectivePreferredResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
savingsEstimationMode
Describes the savings estimation mode used for calculating savings opportunity.
Only the account manager or delegated administrator of your organization can activate this preference.
- Parameters:
savingsEstimationMode
- Describes the savings estimation mode used for calculating savings opportunity.Only the account manager or delegated administrator of your organization can activate this preference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
savingsEstimationMode
RecommendationPreferencesDetail.Builder savingsEstimationMode(SavingsEstimationMode savingsEstimationMode) Describes the savings estimation mode used for calculating savings opportunity.
Only the account manager or delegated administrator of your organization can activate this preference.
- Parameters:
savingsEstimationMode
- Describes the savings estimation mode used for calculating savings opportunity.Only the account manager or delegated administrator of your organization can activate this preference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-