Class AutoScalingGroupRecommendationOption
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AutoScalingGroupRecommendationOption.Builder,
AutoScalingGroupRecommendationOption>
Describes a recommendation option for an Auto Scaling group.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
An array of objects that describe an Auto Scaling group configuration.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.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 ProjectedUtilizationMetrics property.final GpuInfo
Describes the GPU accelerator settings for the recommended instance type of the Auto Scaling group.final MigrationEffort
The level of effort required to migrate from the current instance type to the recommended instance type.final String
The level of effort required to migrate from the current instance type to the recommended instance type.final Double
The performance risk of the Auto Scaling group configuration recommendation.final List
<UtilizationMetric> An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.final Integer
rank()
The rank of the Auto Scaling group recommendation option.final SavingsOpportunity
An object that describes the savings opportunity for the Auto Scaling group recommendation option.An object that describes the savings opportunity for the Auto Scaling group recommendation option that includes Savings Plans and Reserved Instances discounts.static Class
<? extends AutoScalingGroupRecommendationOption.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.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
configuration
An array of objects that describe an Auto Scaling group configuration.
- Returns:
- An array of objects that describe an Auto Scaling group configuration.
-
instanceGpuInfo
Describes the GPU accelerator settings for the recommended instance type of the Auto Scaling group.
- Returns:
- Describes the GPU accelerator settings for the recommended instance type of the Auto Scaling group.
-
hasProjectedUtilizationMetrics
public final boolean hasProjectedUtilizationMetrics()For responses, this returns true if the service returned a value for the ProjectedUtilizationMetrics 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. -
projectedUtilizationMetrics
An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.
The
Cpu
andMemory
metrics are the only projected utilization metrics returned. Additionally, theMemory
metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.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
hasProjectedUtilizationMetrics()
method.- Returns:
- An array of objects that describe the projected utilization metrics of the Auto Scaling group
recommendation option.
The
Cpu
andMemory
metrics are the only projected utilization metrics returned. Additionally, theMemory
metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
-
performanceRisk
The performance risk of the Auto Scaling group configuration recommendation.
Performance risk indicates the likelihood of the recommended instance type not meeting the resource needs of your workload. Compute Optimizer calculates an individual performance risk score for each specification of the recommended instance, including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS. The performance risk of the recommended instance is calculated as the maximum performance risk score across the analyzed resource specifications.
The value ranges from
0
-4
, with0
meaning that the recommended resource is predicted to always provide enough hardware capability. The higher the performance risk is, the more likely you should validate whether the recommendation will meet the performance requirements of your workload before migrating your resource.- Returns:
- The performance risk of the Auto Scaling group configuration recommendation.
Performance risk indicates the likelihood of the recommended instance type not meeting the resource needs of your workload. Compute Optimizer calculates an individual performance risk score for each specification of the recommended instance, including CPU, memory, EBS throughput, EBS IOPS, disk throughput, disk IOPS, network throughput, and network PPS. The performance risk of the recommended instance is calculated as the maximum performance risk score across the analyzed resource specifications.
The value ranges from
0
-4
, with0
meaning that the recommended resource is predicted to always provide enough hardware capability. The higher the performance risk is, the more likely you should validate whether the recommendation will meet the performance requirements of your workload before migrating your resource.
-
rank
The rank of the Auto Scaling group recommendation option.
The top recommendation option is ranked as
1
.- Returns:
- The rank of the Auto Scaling group recommendation option.
The top recommendation option is ranked as
1
.
-
savingsOpportunity
An object that describes the savings opportunity for the Auto Scaling group recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.
- Returns:
- An object that describes the savings opportunity for the Auto Scaling group recommendation option. Savings opportunity includes the estimated monthly savings amount and percentage.
-
savingsOpportunityAfterDiscounts
An object that describes the savings opportunity for the Auto Scaling group recommendation option that includes Savings Plans and Reserved Instances discounts. Savings opportunity includes the estimated monthly savings and percentage.
- Returns:
- An object that describes the savings opportunity for the Auto Scaling group recommendation option that includes Savings Plans and Reserved Instances discounts. Savings opportunity includes the estimated monthly savings and percentage.
-
migrationEffort
The level of effort required to migrate from the current instance type to the recommended instance type.
For example, the migration effort is
Low
if Amazon EMR is the inferred workload type and an Amazon Web Services Graviton instance type is recommended. The migration effort isMedium
if a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort isVeryLow
if both the current and recommended instance types are of the same CPU architecture.If the service returns an enum value that is not available in the current SDK version,
migrationEffort
will returnMigrationEffort.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommigrationEffortAsString()
.- Returns:
- The level of effort required to migrate from the current instance type to the recommended instance
type.
For example, the migration effort is
Low
if Amazon EMR is the inferred workload type and an Amazon Web Services Graviton instance type is recommended. The migration effort isMedium
if a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort isVeryLow
if both the current and recommended instance types are of the same CPU architecture. - See Also:
-
migrationEffortAsString
The level of effort required to migrate from the current instance type to the recommended instance type.
For example, the migration effort is
Low
if Amazon EMR is the inferred workload type and an Amazon Web Services Graviton instance type is recommended. The migration effort isMedium
if a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort isVeryLow
if both the current and recommended instance types are of the same CPU architecture.If the service returns an enum value that is not available in the current SDK version,
migrationEffort
will returnMigrationEffort.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommigrationEffortAsString()
.- Returns:
- The level of effort required to migrate from the current instance type to the recommended instance
type.
For example, the migration effort is
Low
if Amazon EMR is the inferred workload type and an Amazon Web Services Graviton instance type is recommended. The migration effort isMedium
if a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort isVeryLow
if both the current and recommended instance types are of the same CPU architecture. - See Also:
-
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<AutoScalingGroupRecommendationOption.Builder,
AutoScalingGroupRecommendationOption> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends AutoScalingGroupRecommendationOption.Builder> serializableBuilderClass() -
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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-