@Generated(value="software.amazon.awssdk:codegen") public final class RightsizingRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>
Recommendations to rightsize resources.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RightsizingRecommendation.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The account that this recommendation is for.
|
static RightsizingRecommendation.Builder |
builder() |
CurrentInstance |
currentInstance()
Context regarding the current instance.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<FindingReasonCode> |
findingReasonCodes()
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific
metrics (for example, CPU, Memory, Network).
|
List<String> |
findingReasonCodesAsStrings()
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific
metrics (for example, CPU, Memory, Network).
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFindingReasonCodes()
For responses, this returns true if the service returned a value for the FindingReasonCodes property.
|
int |
hashCode() |
ModifyRecommendationDetail |
modifyRecommendationDetail()
The details for the modification recommendations.
|
RightsizingType |
rightsizingType()
A recommendation to either terminate or modify the resource.
|
String |
rightsizingTypeAsString()
A recommendation to either terminate or modify the resource.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RightsizingRecommendation.Builder> |
serializableBuilderClass() |
TerminateRecommendationDetail |
terminateRecommendationDetail()
The details for termination recommendations.
|
RightsizingRecommendation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String accountId()
The account that this recommendation is for.
public final CurrentInstance currentInstance()
Context regarding the current instance.
public final RightsizingType rightsizingType()
A recommendation to either terminate or modify the resource.
If the service returns an enum value that is not available in the current SDK version, rightsizingType
will return RightsizingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from rightsizingTypeAsString().
RightsizingTypepublic final String rightsizingTypeAsString()
A recommendation to either terminate or modify the resource.
If the service returns an enum value that is not available in the current SDK version, rightsizingType
will return RightsizingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from rightsizingTypeAsString().
RightsizingTypepublic final ModifyRecommendationDetail modifyRecommendationDetail()
The details for the modification recommendations.
public final TerminateRecommendationDetail terminateRecommendationDetail()
The details for termination recommendations.
public final List<FindingReasonCode> findingReasonCodes()
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
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 hasFindingReasonCodes() method.
public final boolean hasFindingReasonCodes()
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> findingReasonCodesAsStrings()
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
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 hasFindingReasonCodes() method.
public RightsizingRecommendation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>public static RightsizingRecommendation.Builder builder()
public static Class<? extends RightsizingRecommendation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.