@Generated(value="software.amazon.awssdk:codegen") public final class AutoScalingGroupRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoScalingGroupRecommendation.Builder,AutoScalingGroupRecommendation>
Describes an Auto Scaling group recommendation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AutoScalingGroupRecommendation.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The Amazon Web Services account ID of the Auto Scaling group.
|
String |
autoScalingGroupArn()
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
String |
autoScalingGroupName()
The name of the Auto Scaling group.
|
static AutoScalingGroupRecommendation.Builder |
builder() |
AutoScalingGroupConfiguration |
currentConfiguration()
An array of objects that describe the current configuration of the Auto Scaling group.
|
CurrentPerformanceRisk |
currentPerformanceRisk()
The risk of the current Auto Scaling group not meeting the performance needs of its workloads.
|
String |
currentPerformanceRiskAsString()
The risk of the current Auto Scaling group not meeting the performance needs of its workloads.
|
EffectiveRecommendationPreferences |
effectiveRecommendationPreferences()
An object that describes the effective recommendation preferences for the Auto Scaling group.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Finding |
finding()
The finding classification of the Auto Scaling group.
|
String |
findingAsString()
The finding classification of the Auto Scaling group.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInferredWorkloadTypes()
For responses, this returns true if the service returned a value for the InferredWorkloadTypes property.
|
boolean |
hasRecommendationOptions()
For responses, this returns true if the service returned a value for the RecommendationOptions property.
|
boolean |
hasUtilizationMetrics()
For responses, this returns true if the service returned a value for the UtilizationMetrics property.
|
List<InferredWorkloadType> |
inferredWorkloadTypes()
The applications that might be running on the instances in the Auto Scaling group as inferred by Compute
Optimizer.
|
List<String> |
inferredWorkloadTypesAsStrings()
The applications that might be running on the instances in the Auto Scaling group as inferred by Compute
Optimizer.
|
Instant |
lastRefreshTimestamp()
The timestamp of when the Auto Scaling group recommendation was last generated.
|
Double |
lookBackPeriodInDays()
The number of days for which utilization metrics were analyzed for the Auto Scaling group.
|
List<AutoScalingGroupRecommendationOption> |
recommendationOptions()
An array of objects that describe the recommendation options for the Auto Scaling group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutoScalingGroupRecommendation.Builder> |
serializableBuilderClass() |
AutoScalingGroupRecommendation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<UtilizationMetric> |
utilizationMetrics()
An array of objects that describe the utilization metrics of the Auto Scaling group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String accountId()
The Amazon Web Services account ID of the Auto Scaling group.
public final String autoScalingGroupArn()
The Amazon Resource Name (ARN) of the Auto Scaling group.
public final String autoScalingGroupName()
The name of the Auto Scaling group.
public final Finding 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.
If the service returns an enum value that is not available in the current SDK version, finding will
return Finding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
findingAsString().
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.
Findingpublic final String findingAsString()
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.
If the service returns an enum value that is not available in the current SDK version, finding will
return Finding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
findingAsString().
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.
Findingpublic final boolean hasUtilizationMetrics()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<UtilizationMetric> utilizationMetrics()
An array of objects that describe the utilization metrics of the Auto Scaling group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasUtilizationMetrics() method.
public final Double lookBackPeriodInDays()
The number of days for which utilization metrics were analyzed for the Auto Scaling group.
public final AutoScalingGroupConfiguration currentConfiguration()
An array of objects that describe the current configuration of the Auto Scaling group.
public final boolean hasRecommendationOptions()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<AutoScalingGroupRecommendationOption> recommendationOptions()
An array of objects that describe the recommendation options for the Auto Scaling group.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRecommendationOptions() method.
public final Instant lastRefreshTimestamp()
The timestamp of when the Auto Scaling group recommendation was last generated.
public final 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.
If the service returns an enum value that is not available in the current SDK version,
currentPerformanceRisk will return CurrentPerformanceRisk.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from currentPerformanceRiskAsString().
CurrentPerformanceRiskpublic final String currentPerformanceRiskAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
currentPerformanceRisk will return CurrentPerformanceRisk.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from currentPerformanceRiskAsString().
CurrentPerformanceRiskpublic final EffectiveRecommendationPreferences effectiveRecommendationPreferences()
An object that describes the effective recommendation preferences for the Auto Scaling group.
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInferredWorkloadTypes() method.
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.
public final boolean hasInferredWorkloadTypes()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<String> inferredWorkloadTypesAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInferredWorkloadTypes() method.
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.
public AutoScalingGroupRecommendation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutoScalingGroupRecommendation.Builder,AutoScalingGroupRecommendation>public static AutoScalingGroupRecommendation.Builder builder()
public static Class<? extends AutoScalingGroupRecommendation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.