Interface AutoScalingGroupRecommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AutoScalingGroupRecommendation.Builder,
,AutoScalingGroupRecommendation> SdkBuilder<AutoScalingGroupRecommendation.Builder,
,AutoScalingGroupRecommendation> SdkPojo
- Enclosing class:
AutoScalingGroupRecommendation
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID of the Auto Scaling group.autoScalingGroupArn
(String autoScalingGroupArn) The Amazon Resource Name (ARN) of the Auto Scaling group.autoScalingGroupName
(String autoScalingGroupName) The name of the Auto Scaling group.currentConfiguration
(Consumer<AutoScalingGroupConfiguration.Builder> currentConfiguration) An array of objects that describe the current configuration of the Auto Scaling group.currentConfiguration
(AutoScalingGroupConfiguration currentConfiguration) An array of objects that describe the current configuration of the Auto Scaling group.currentInstanceGpuInfo
(Consumer<GpuInfo.Builder> currentInstanceGpuInfo) Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.currentInstanceGpuInfo
(GpuInfo currentInstanceGpuInfo) Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.currentPerformanceRisk
(String currentPerformanceRisk) The risk of the current Auto Scaling group not meeting the performance needs of its workloads.currentPerformanceRisk
(CurrentPerformanceRisk currentPerformanceRisk) The risk of the current Auto Scaling group not meeting the performance needs of its workloads.effectiveRecommendationPreferences
(Consumer<EffectiveRecommendationPreferences.Builder> effectiveRecommendationPreferences) An object that describes the effective recommendation preferences for the Auto Scaling group.effectiveRecommendationPreferences
(EffectiveRecommendationPreferences effectiveRecommendationPreferences) An object that describes the effective recommendation preferences for the Auto Scaling group.The finding classification of the Auto Scaling group.The finding classification of the Auto Scaling group.inferredWorkloadTypes
(Collection<InferredWorkloadType> inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.inferredWorkloadTypes
(InferredWorkloadType... inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.inferredWorkloadTypesWithStrings
(String... inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.inferredWorkloadTypesWithStrings
(Collection<String> inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.lastRefreshTimestamp
(Instant lastRefreshTimestamp) The timestamp of when the Auto Scaling group recommendation was last generated.lookBackPeriodInDays
(Double lookBackPeriodInDays) The number of days for which utilization metrics were analyzed for the Auto Scaling group.recommendationOptions
(Collection<AutoScalingGroupRecommendationOption> recommendationOptions) An array of objects that describe the recommendation options for the Auto Scaling group.recommendationOptions
(Consumer<AutoScalingGroupRecommendationOption.Builder>... recommendationOptions) An array of objects that describe the recommendation options for the Auto Scaling group.recommendationOptions
(AutoScalingGroupRecommendationOption... recommendationOptions) An array of objects that describe the recommendation options for the Auto Scaling group.utilizationMetrics
(Collection<UtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the Auto Scaling group.utilizationMetrics
(Consumer<UtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the Auto Scaling group.utilizationMetrics
(UtilizationMetric... utilizationMetrics) An array of objects that describe the utilization metrics of the Auto Scaling group.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
-
accountId
The Amazon Web Services account ID of the Auto Scaling group.
- Parameters:
accountId
- The Amazon Web Services account ID of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupArn
The Amazon Resource Name (ARN) of the Auto Scaling group.
- Parameters:
autoScalingGroupArn
- The Amazon Resource Name (ARN) of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingGroupName
The name of the Auto Scaling group.
- Parameters:
autoScalingGroupName
- The name of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finding
The finding classification of the Auto Scaling group.
Findings for Auto Scaling groups include:
-
NotOptimized
—An Auto Scaling group is considered not optimized when Compute Optimizer identifies a recommendation that can provide better performance for your workload. -
Optimized
—An Auto Scaling group is considered optimized when Compute Optimizer determines that the group is correctly provisioned to run your workload based on the chosen instance type. For optimized resources, Compute Optimizer might recommend a new generation instance type.
- Parameters:
finding
- The finding classification of the Auto Scaling group.Findings for Auto Scaling groups include:
-
NotOptimized
—An Auto Scaling group is considered not optimized when Compute Optimizer identifies a recommendation that can provide better performance for your workload. -
Optimized
—An Auto Scaling group is considered optimized when Compute Optimizer determines that the group is correctly provisioned to run your workload based on the chosen instance type. For optimized resources, Compute Optimizer might recommend a new generation instance type.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
finding
The finding classification of the Auto Scaling group.
Findings for Auto Scaling groups include:
-
NotOptimized
—An Auto Scaling group is considered not optimized when Compute Optimizer identifies a recommendation that can provide better performance for your workload. -
Optimized
—An Auto Scaling group is considered optimized when Compute Optimizer determines that the group is correctly provisioned to run your workload based on the chosen instance type. For optimized resources, Compute Optimizer might recommend a new generation instance type.
- Parameters:
finding
- The finding classification of the Auto Scaling group.Findings for Auto Scaling groups include:
-
NotOptimized
—An Auto Scaling group is considered not optimized when Compute Optimizer identifies a recommendation that can provide better performance for your workload. -
Optimized
—An Auto Scaling group is considered optimized when Compute Optimizer determines that the group is correctly provisioned to run your workload based on the chosen instance type. For optimized resources, Compute Optimizer might recommend a new generation instance type.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
utilizationMetrics
AutoScalingGroupRecommendation.Builder utilizationMetrics(Collection<UtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the Auto Scaling group.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
An array of objects that describe the utilization metrics of the Auto Scaling group.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
AutoScalingGroupRecommendation.Builder utilizationMetrics(Consumer<UtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the Auto Scaling group.
This is a convenience method that creates an instance of theUtilizationMetric.Builder
avoiding the need to create one manually viaUtilizationMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toutilizationMetrics(List<UtilizationMetric>)
.- Parameters:
utilizationMetrics
- a consumer that will call methods onUtilizationMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookBackPeriodInDays
The number of days for which utilization metrics were analyzed for the Auto Scaling group.
- Parameters:
lookBackPeriodInDays
- The number of days for which utilization metrics were analyzed for the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentConfiguration
AutoScalingGroupRecommendation.Builder currentConfiguration(AutoScalingGroupConfiguration currentConfiguration) An array of objects that describe the current configuration of the Auto Scaling group.
- Parameters:
currentConfiguration
- An array of objects that describe the current configuration of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentConfiguration
default AutoScalingGroupRecommendation.Builder currentConfiguration(Consumer<AutoScalingGroupConfiguration.Builder> currentConfiguration) An array of objects that describe the current configuration of the Auto Scaling group.
This is a convenience method that creates an instance of theAutoScalingGroupConfiguration.Builder
avoiding the need to create one manually viaAutoScalingGroupConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentConfiguration(AutoScalingGroupConfiguration)
.- Parameters:
currentConfiguration
- a consumer that will call methods onAutoScalingGroupConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendationOptions
AutoScalingGroupRecommendation.Builder recommendationOptions(Collection<AutoScalingGroupRecommendationOption> recommendationOptions) An array of objects that describe the recommendation options for the Auto Scaling group.
- Parameters:
recommendationOptions
- An array of objects that describe the recommendation options for the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationOptions
AutoScalingGroupRecommendation.Builder recommendationOptions(AutoScalingGroupRecommendationOption... recommendationOptions) An array of objects that describe the recommendation options for the Auto Scaling group.
- Parameters:
recommendationOptions
- An array of objects that describe the recommendation options for the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationOptions
AutoScalingGroupRecommendation.Builder recommendationOptions(Consumer<AutoScalingGroupRecommendationOption.Builder>... recommendationOptions) An array of objects that describe the recommendation options for the Auto Scaling group.
This is a convenience method that creates an instance of theAutoScalingGroupRecommendationOption.Builder
avoiding the need to create one manually viaAutoScalingGroupRecommendationOption.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecommendationOptions(List<AutoScalingGroupRecommendationOption>)
.- Parameters:
recommendationOptions
- a consumer that will call methods onAutoScalingGroupRecommendationOption.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastRefreshTimestamp
The timestamp of when the Auto Scaling group recommendation was last generated.
- Parameters:
lastRefreshTimestamp
- The timestamp of when the Auto Scaling group recommendation was last generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentPerformanceRisk
The risk of the current Auto Scaling group not meeting the performance needs of its workloads. The higher the risk, the more likely the current Auto Scaling group configuration has insufficient capacity and cannot meet workload requirements.
- Parameters:
currentPerformanceRisk
- The risk of the current Auto Scaling group not meeting the performance needs of its workloads. The higher the risk, the more likely the current Auto Scaling group configuration has insufficient capacity and cannot meet workload requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentPerformanceRisk
AutoScalingGroupRecommendation.Builder currentPerformanceRisk(CurrentPerformanceRisk currentPerformanceRisk) The risk of the current Auto Scaling group not meeting the performance needs of its workloads. The higher the risk, the more likely the current Auto Scaling group configuration has insufficient capacity and cannot meet workload requirements.
- Parameters:
currentPerformanceRisk
- The risk of the current Auto Scaling group not meeting the performance needs of its workloads. The higher the risk, the more likely the current Auto Scaling group configuration has insufficient capacity and cannot meet workload requirements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
effectiveRecommendationPreferences
AutoScalingGroupRecommendation.Builder effectiveRecommendationPreferences(EffectiveRecommendationPreferences effectiveRecommendationPreferences) An object that describes the effective recommendation preferences for the Auto Scaling group.
- Parameters:
effectiveRecommendationPreferences
- An object that describes the effective recommendation preferences for the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effectiveRecommendationPreferences
default AutoScalingGroupRecommendation.Builder effectiveRecommendationPreferences(Consumer<EffectiveRecommendationPreferences.Builder> effectiveRecommendationPreferences) An object that describes the effective recommendation preferences for the Auto Scaling group.
This is a convenience method that creates an instance of theEffectiveRecommendationPreferences.Builder
avoiding the need to create one manually viaEffectiveRecommendationPreferences.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeffectiveRecommendationPreferences(EffectiveRecommendationPreferences)
.- Parameters:
effectiveRecommendationPreferences
- a consumer that will call methods onEffectiveRecommendationPreferences.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inferredWorkloadTypesWithStrings
AutoScalingGroupRecommendation.Builder inferredWorkloadTypesWithStrings(Collection<String> inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.
Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
- Parameters:
inferredWorkloadTypes
- The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
inferredWorkloadTypesWithStrings
AutoScalingGroupRecommendation.Builder inferredWorkloadTypesWithStrings(String... inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.
Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
- Parameters:
inferredWorkloadTypes
- The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
inferredWorkloadTypes
AutoScalingGroupRecommendation.Builder inferredWorkloadTypes(Collection<InferredWorkloadType> inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.
Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
- Parameters:
inferredWorkloadTypes
- The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
inferredWorkloadTypes
AutoScalingGroupRecommendation.Builder inferredWorkloadTypes(InferredWorkloadType... inferredWorkloadTypes) The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.
Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
- Parameters:
inferredWorkloadTypes
- The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.Compute Optimizer can infer if one of the following applications might be running on the instances:
-
AmazonEmr
- Infers that Amazon EMR might be running on the instances. -
ApacheCassandra
- Infers that Apache Cassandra might be running on the instances. -
ApacheHadoop
- Infers that Apache Hadoop might be running on the instances. -
Memcached
- Infers that Memcached might be running on the instances. -
NGINX
- Infers that NGINX might be running on the instances. -
PostgreSql
- Infers that PostgreSQL might be running on the instances. -
Redis
- Infers that Redis might be running on the instances. -
Kafka
- Infers that Kafka might be running on the instance. -
SQLServer
- Infers that SQLServer might be running on the instance.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
currentInstanceGpuInfo
Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.
- Parameters:
currentInstanceGpuInfo
- Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentInstanceGpuInfo
default AutoScalingGroupRecommendation.Builder currentInstanceGpuInfo(Consumer<GpuInfo.Builder> currentInstanceGpuInfo) Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.
This is a convenience method that creates an instance of theGpuInfo.Builder
avoiding the need to create one manually viaGpuInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocurrentInstanceGpuInfo(GpuInfo)
.- Parameters:
currentInstanceGpuInfo
- a consumer that will call methods onGpuInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-