Class AutoScalingGroupRecommendation
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AutoScalingGroupRecommendation.Builder,
AutoScalingGroupRecommendation>
Describes an Auto Scaling group recommendation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The Amazon Web Services account ID of the Auto Scaling group.final String
The Amazon Resource Name (ARN) of the Auto Scaling group.final String
The name of the Auto Scaling group.builder()
An array of objects that describe the current configuration of the Auto Scaling group.final GpuInfo
Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.final CurrentPerformanceRisk
The risk of the current Auto Scaling group not meeting the performance needs of its workloads.final String
The risk of the current Auto Scaling group not meeting the performance needs of its workloads.An object that describes the effective recommendation preferences for the Auto Scaling group.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Finding
finding()
The finding classification of the Auto Scaling group.final String
The finding classification of the Auto Scaling group.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the InferredWorkloadTypes property.final boolean
For responses, this returns true if the service returned a value for the RecommendationOptions property.final boolean
For responses, this returns true if the service returned a value for the UtilizationMetrics property.final List
<InferredWorkloadType> The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.The applications that might be running on the instances in the Auto Scaling group as inferred by Compute Optimizer.final Instant
The timestamp of when the Auto Scaling group recommendation was last generated.final Double
The number of days for which utilization metrics were analyzed for the Auto Scaling group.An array of objects that describe the recommendation options for the Auto Scaling group.static Class
<? extends AutoScalingGroupRecommendation.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final List
<UtilizationMetric> An array of objects that describe the utilization metrics of the Auto Scaling group.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
accountId
The Amazon Web Services account ID of the Auto Scaling group.
- Returns:
- The Amazon Web Services account ID of the Auto Scaling group.
-
autoScalingGroupArn
The Amazon Resource Name (ARN) of the Auto Scaling group.
- Returns:
- The Amazon Resource Name (ARN) of the Auto Scaling group.
-
autoScalingGroupName
The name of the Auto Scaling group.
- Returns:
- The name of the Auto Scaling group.
-
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 returnFinding.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfindingAsString()
.- Returns:
- 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.
-
- See Also:
-
-
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 returnFinding.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfindingAsString()
.- Returns:
- 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.
-
- See Also:
-
-
hasUtilizationMetrics
public final boolean hasUtilizationMetrics()For responses, this returns true if the service returned a value for the UtilizationMetrics property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- An array of objects that describe the utilization metrics of the Auto Scaling group.
-
lookBackPeriodInDays
The number of days for which utilization metrics were analyzed for the Auto Scaling group.
- Returns:
- The number of days for which utilization metrics were analyzed for the Auto Scaling group.
-
currentConfiguration
An array of objects that describe the current configuration of the Auto Scaling group.
- Returns:
- An array of objects that describe the current configuration of the Auto Scaling group.
-
hasRecommendationOptions
public final boolean hasRecommendationOptions()For responses, this returns true if the service returned a value for the RecommendationOptions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- An array of objects that describe the recommendation options for the Auto Scaling group.
-
lastRefreshTimestamp
The timestamp of when the Auto Scaling group recommendation was last generated.
- Returns:
- The timestamp of when the Auto Scaling group recommendation was last generated.
-
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 returnCurrentPerformanceRisk.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentPerformanceRiskAsString()
.- Returns:
- 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.
- See Also:
-
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 returnCurrentPerformanceRisk.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentPerformanceRiskAsString()
.- Returns:
- 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.
- See Also:
-
effectiveRecommendationPreferences
An object that describes the effective recommendation preferences for the Auto Scaling group.
- Returns:
- An object that describes the effective recommendation preferences for the Auto Scaling group.
-
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.- Returns:
- 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.
-
-
-
hasInferredWorkloadTypes
public final boolean hasInferredWorkloadTypes()For responses, this returns true if the service returned a value for the InferredWorkloadTypes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
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.- Returns:
- 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.
-
-
-
currentInstanceGpuInfo
Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.
- Returns:
- Describes the GPU accelerator settings for the current instance type of the Auto Scaling group.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<AutoScalingGroupRecommendation.Builder,
AutoScalingGroupRecommendation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-