@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()
Returns true if the FindingReasonCodes property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
ModifyRecommendationDetail |
modifyRecommendationDetail()
Details for modification recommendations.
|
RightsizingType |
rightsizingType()
Recommendation to either terminate or modify the resource.
|
String |
rightsizingTypeAsString()
Recommendation to either terminate or modify the resource.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RightsizingRecommendation.Builder> |
serializableBuilderClass() |
TerminateRecommendationDetail |
terminateRecommendationDetail()
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()
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()
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()
Details for modification recommendations.
public final TerminateRecommendationDetail terminateRecommendationDetail()
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.
You can use hasFindingReasonCodes() to see if a value was sent in this field.
public final boolean hasFindingReasonCodes()
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.
You can use hasFindingReasonCodes() to see if a value was sent in this field.
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 © 2021. All rights reserved.