Interface EffectiveRecommendationPreferences.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EffectiveRecommendationPreferences.Builder,
,EffectiveRecommendationPreferences> SdkBuilder<EffectiveRecommendationPreferences.Builder,
,EffectiveRecommendationPreferences> SdkPojo
- Enclosing class:
EffectiveRecommendationPreferences
-
Method Summary
Modifier and TypeMethodDescriptioncpuVendorArchitectures
(Collection<CpuVendorArchitecture> cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.cpuVendorArchitectures
(CpuVendorArchitecture... cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.cpuVendorArchitecturesWithStrings
(String... cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.cpuVendorArchitecturesWithStrings
(Collection<String> cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.enhancedInfrastructureMetrics
(String enhancedInfrastructureMetrics) Describes the activation status of the enhanced infrastructure metrics preference.enhancedInfrastructureMetrics
(EnhancedInfrastructureMetrics enhancedInfrastructureMetrics) Describes the activation status of the enhanced infrastructure metrics 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) Describes the activation status of the inferred workload types preference.inferredWorkloadTypes
(InferredWorkloadTypesPreference inferredWorkloadTypes) Describes the activation status of the inferred workload types preference.lookBackPeriod
(String lookBackPeriod) The number of days the utilization metrics of the Amazon Web Services resource are analyzed.lookBackPeriod
(LookBackPeriodPreference lookBackPeriod) The number of days the utilization metrics of the Amazon Web Services resource are analyzed.preferredResources
(Collection<EffectivePreferredResource> preferredResources) The resource type values that are considered as candidates when generating rightsizing recommendations.preferredResources
(Consumer<EffectivePreferredResource.Builder>... preferredResources) The resource type values that are considered as candidates when generating rightsizing recommendations.preferredResources
(EffectivePreferredResource... preferredResources) The resource type values that are considered as candidates when generating rightsizing recommendations.savingsEstimationMode
(Consumer<InstanceSavingsEstimationMode.Builder> savingsEstimationMode) Describes the savings estimation mode applied for calculating savings opportunity for a resource.savingsEstimationMode
(InstanceSavingsEstimationMode savingsEstimationMode) Describes the savings estimation mode applied for calculating savings opportunity for a resource.utilizationPreferences
(Collection<UtilizationPreference> utilizationPreferences) The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.utilizationPreferences
(Consumer<UtilizationPreference.Builder>... utilizationPreferences) The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.utilizationPreferences
(UtilizationPreference... utilizationPreferences) The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.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
-
cpuVendorArchitecturesWithStrings
EffectiveRecommendationPreferences.Builder cpuVendorArchitecturesWithStrings(Collection<String> cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.
For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
- Parameters:
cpuVendorArchitectures
- Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
cpuVendorArchitecturesWithStrings
EffectiveRecommendationPreferences.Builder cpuVendorArchitecturesWithStrings(String... cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.
For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
- Parameters:
cpuVendorArchitectures
- Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
cpuVendorArchitectures
EffectiveRecommendationPreferences.Builder cpuVendorArchitectures(Collection<CpuVendorArchitecture> cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.
For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
- Parameters:
cpuVendorArchitectures
- Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
cpuVendorArchitectures
EffectiveRecommendationPreferences.Builder cpuVendorArchitectures(CpuVendorArchitecture... cpuVendorArchitectures) Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.
For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
- Parameters:
cpuVendorArchitectures
- Describes the CPU vendor and architecture for an instance or Auto Scaling group recommendations.For example, when you specify
AWS_ARM64
with:-
A GetEC2InstanceRecommendations or GetAutoScalingGroupRecommendations request, Compute Optimizer returns recommendations that consist of Graviton2 instance types only.
-
A GetEC2RecommendationProjectedMetrics request, Compute Optimizer returns projected utilization metrics for Graviton2 instance type recommendations only.
-
A ExportEC2InstanceRecommendations or ExportAutoScalingGroupRecommendations request, Compute Optimizer exports recommendations that consist of Graviton2 instance types only.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
enhancedInfrastructureMetrics
EffectiveRecommendationPreferences.Builder enhancedInfrastructureMetrics(String enhancedInfrastructureMetrics) Describes the activation status of the enhanced infrastructure metrics preference.
A status of
Active
confirms that the preference is applied in the latest recommendation refresh, and a status ofInactive
confirms that it's not yet applied to recommendations.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
enhancedInfrastructureMetrics
- Describes the activation status of the enhanced infrastructure metrics preference.A status of
Active
confirms that the preference is applied in the latest recommendation refresh, and a status ofInactive
confirms that it's not 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
EffectiveRecommendationPreferences.Builder enhancedInfrastructureMetrics(EnhancedInfrastructureMetrics enhancedInfrastructureMetrics) Describes the activation status of the enhanced infrastructure metrics preference.
A status of
Active
confirms that the preference is applied in the latest recommendation refresh, and a status ofInactive
confirms that it's not yet applied to recommendations.For more information, see Enhanced infrastructure metrics in the Compute Optimizer User Guide.
- Parameters:
enhancedInfrastructureMetrics
- Describes the activation status of the enhanced infrastructure metrics preference.A status of
Active
confirms that the preference is applied in the latest recommendation refresh, and a status ofInactive
confirms that it's not 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
Describes the activation status of the inferred workload types preference.
A status of
Active
confirms that the preference is applied in the latest recommendation refresh. A status ofInactive
confirms that it's not yet applied to recommendations.- Parameters:
inferredWorkloadTypes
- Describes the activation status of the inferred workload types preference.A status of
Active
confirms that the preference is applied in the latest recommendation refresh. A status ofInactive
confirms that it's not yet applied to recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inferredWorkloadTypes
EffectiveRecommendationPreferences.Builder inferredWorkloadTypes(InferredWorkloadTypesPreference inferredWorkloadTypes) Describes the activation status of the inferred workload types preference.
A status of
Active
confirms that the preference is applied in the latest recommendation refresh. A status ofInactive
confirms that it's not yet applied to recommendations.- Parameters:
inferredWorkloadTypes
- Describes the activation status of the inferred workload types preference.A status of
Active
confirms that the preference is applied in the latest recommendation refresh. A status ofInactive
confirms that it's not yet applied to recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
externalMetricsPreference
EffectiveRecommendationPreferences.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 EffectiveRecommendationPreferences.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 number of days the utilization metrics of the Amazon Web Services resource are analyzed.
- Parameters:
lookBackPeriod
- The number of days the utilization metrics of the Amazon Web Services resource are analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookBackPeriod
The number of days the utilization metrics of the Amazon Web Services resource are analyzed.
- Parameters:
lookBackPeriod
- The number of days the utilization metrics of the Amazon Web Services resource are analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
utilizationPreferences
EffectiveRecommendationPreferences.Builder utilizationPreferences(Collection<UtilizationPreference> utilizationPreferences) The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.
This preference is only available for the Amazon EC2 instance resource type.
- Parameters:
utilizationPreferences
- The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.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
EffectiveRecommendationPreferences.Builder utilizationPreferences(UtilizationPreference... utilizationPreferences) The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.
This preference is only available for the Amazon EC2 instance resource type.
- Parameters:
utilizationPreferences
- The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.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
EffectiveRecommendationPreferences.Builder utilizationPreferences(Consumer<UtilizationPreference.Builder>... utilizationPreferences) The resource’s CPU and memory utilization preferences, such as threshold and headroom, that are used to generate rightsizing recommendations.
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
EffectiveRecommendationPreferences.Builder preferredResources(Collection<EffectivePreferredResource> preferredResources) The resource type values that are considered as candidates when generating rightsizing recommendations.
- Parameters:
preferredResources
- The resource type values that are considered as candidates when generating rightsizing recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredResources
EffectiveRecommendationPreferences.Builder preferredResources(EffectivePreferredResource... preferredResources) The resource type values that are considered as candidates when generating rightsizing recommendations.
- Parameters:
preferredResources
- The resource type values that are considered as candidates when generating rightsizing recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredResources
EffectiveRecommendationPreferences.Builder preferredResources(Consumer<EffectivePreferredResource.Builder>... preferredResources) The resource type values that are considered as candidates when generating rightsizing recommendations.
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
EffectiveRecommendationPreferences.Builder savingsEstimationMode(InstanceSavingsEstimationMode savingsEstimationMode) Describes the savings estimation mode applied for calculating savings opportunity for a resource.
- Parameters:
savingsEstimationMode
- Describes the savings estimation mode applied for calculating savings opportunity for a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsEstimationMode
default EffectiveRecommendationPreferences.Builder savingsEstimationMode(Consumer<InstanceSavingsEstimationMode.Builder> savingsEstimationMode) Describes the savings estimation mode applied for calculating savings opportunity for a resource.
This is a convenience method that creates an instance of theInstanceSavingsEstimationMode.Builder
avoiding the need to create one manually viaInstanceSavingsEstimationMode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosavingsEstimationMode(InstanceSavingsEstimationMode)
.- Parameters:
savingsEstimationMode
- a consumer that will call methods onInstanceSavingsEstimationMode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-