Class RightsizingRecommendation
- java.lang.Object
-
- software.amazon.awssdk.services.costexplorer.model.RightsizingRecommendation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>
@Generated("software.amazon.awssdk:codegen") public final class RightsizingRecommendation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>
Recommendations to rightsize resources.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRightsizingRecommendation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountId()The account that this recommendation is for.static RightsizingRecommendation.Builderbuilder()CurrentInstancecurrentInstance()Context regarding the current instance.booleanequals(Object obj)booleanequalsBySdkFields(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)booleanhasFindingReasonCodes()For responses, this returns true if the service returned a value for the FindingReasonCodes property.inthashCode()ModifyRecommendationDetailmodifyRecommendationDetail()The details for the modification recommendations.RightsizingTyperightsizingType()A recommendation to either terminate or modify the resource.StringrightsizingTypeAsString()A recommendation to either terminate or modify the resource.List<SdkField<?>>sdkFields()static Class<? extends RightsizingRecommendation.Builder>serializableBuilderClass()TerminateRecommendationDetailterminateRecommendationDetail()The details for termination recommendations.RightsizingRecommendation.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
accountId
public final String accountId()
The account that this recommendation is for.
- Returns:
- The account that this recommendation is for.
-
currentInstance
public final CurrentInstance currentInstance()
Context regarding the current instance.
- Returns:
- Context regarding the current instance.
-
rightsizingType
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,
rightsizingTypewill returnRightsizingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrightsizingTypeAsString().- Returns:
- A recommendation to either terminate or modify the resource.
- See Also:
RightsizingType
-
rightsizingTypeAsString
public 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,
rightsizingTypewill returnRightsizingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrightsizingTypeAsString().- Returns:
- A recommendation to either terminate or modify the resource.
- See Also:
RightsizingType
-
modifyRecommendationDetail
public final ModifyRecommendationDetail modifyRecommendationDetail()
The details for the modification recommendations.
- Returns:
- The details for the modification recommendations.
-
terminateRecommendationDetail
public final TerminateRecommendationDetail terminateRecommendationDetail()
The details for termination recommendations.
- Returns:
- The details for termination recommendations.
-
findingReasonCodes
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.- Returns:
- The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
-
hasFindingReasonCodes
public final boolean hasFindingReasonCodes()
For responses, this returns true if the service returned a value for the FindingReasonCodes 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.
-
findingReasonCodesAsStrings
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.- Returns:
- The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
-
toBuilder
public RightsizingRecommendation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RightsizingRecommendation.Builder,RightsizingRecommendation>
-
builder
public static RightsizingRecommendation.Builder builder()
-
serializableBuilderClass
public static Class<? extends RightsizingRecommendation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-