@Generated(value="software.amazon.awssdk:codegen") public final class AutoScalingGroupRecommendationOption extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoScalingGroupRecommendationOption.Builder,AutoScalingGroupRecommendationOption>
Describes a recommendation option for an Auto Scaling group.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AutoScalingGroupRecommendationOption.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AutoScalingGroupRecommendationOption.Builder |
builder() |
AutoScalingGroupConfiguration |
configuration()
An array of objects that describe an Auto Scaling group configuration.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProjectedUtilizationMetrics()
For responses, this returns true if the service returned a value for the ProjectedUtilizationMetrics property.
|
MigrationEffort |
migrationEffort()
The level of effort required to migrate from the current instance type to the recommended instance type.
|
String |
migrationEffortAsString()
The level of effort required to migrate from the current instance type to the recommended instance type.
|
Double |
performanceRisk()
The performance risk of the Auto Scaling group configuration recommendation.
|
List<UtilizationMetric> |
projectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation
option.
|
Integer |
rank()
The rank of the Auto Scaling group recommendation option.
|
SavingsOpportunity |
savingsOpportunity()
An object that describes the savings opportunity for the Auto Scaling group recommendation option.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AutoScalingGroupRecommendationOption.Builder> |
serializableBuilderClass() |
AutoScalingGroupRecommendationOption.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AutoScalingGroupConfiguration configuration()
An array of objects that describe an Auto Scaling group configuration.
public final boolean hasProjectedUtilizationMetrics()
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> projectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.
The Cpu and Memory metrics are the only projected utilization metrics returned.
Additionally, the Memory 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.
The Cpu and Memory metrics are the only projected utilization metrics returned.
Additionally, the Memory 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.
public final Double 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, with 0 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.
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, with 0 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.
public final Integer rank()
The rank of the Auto Scaling group recommendation option.
The top recommendation option is ranked as 1.
The top recommendation option is ranked as 1.
public final SavingsOpportunity 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.
public final MigrationEffort 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 is Medium if a workload
type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort
is VeryLow 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 return MigrationEffort.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from migrationEffortAsString().
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 is Medium if
a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended.
The migration effort is VeryLow if both the current and recommended instance types are of
the same CPU architecture.
MigrationEffortpublic final String 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 is Medium if a workload
type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended. The migration effort
is VeryLow 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 return MigrationEffort.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from migrationEffortAsString().
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 is Medium if
a workload type couldn't be inferred but an Amazon Web Services Graviton instance type is recommended.
The migration effort is VeryLow if both the current and recommended instance types are of
the same CPU architecture.
MigrationEffortpublic AutoScalingGroupRecommendationOption.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AutoScalingGroupRecommendationOption.Builder,AutoScalingGroupRecommendationOption>public static AutoScalingGroupRecommendationOption.Builder builder()
public static Class<? extends AutoScalingGroupRecommendationOption.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.