@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 AWS 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.
|
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 |
hasRecommendationOptions()
Returns true if the RecommendationOptions property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasUtilizationMetrics()
Returns true if the UtilizationMetrics property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
Instant |
lastRefreshTimestamp()
The time stamp of when the Auto Scaling group recommendation was last refreshed.
|
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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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()
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.
You can use hasUtilizationMetrics() to see if a value was sent in this field.
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()
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.
You can use hasRecommendationOptions() to see if a value was sent in this field.
public final Instant lastRefreshTimestamp()
The time stamp of when the Auto Scaling group recommendation was last refreshed.
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 © 2021. All rights reserved.