@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RightsizingRecommendation extends Object implements Serializable, Cloneable, StructuredPojo
Recommendations to rightsize resources.
| Constructor and Description | 
|---|
| RightsizingRecommendation() | 
| Modifier and Type | Method and Description | 
|---|---|
| RightsizingRecommendation | clone() | 
| boolean | equals(Object obj) | 
| String | getAccountId()
 The account that this recommendation is for. | 
| CurrentInstance | getCurrentInstance()
 Context regarding the current instance. | 
| List<String> | getFindingReasonCodes()
 The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific
 metrics (for example, CPU, Memory, Network). | 
| ModifyRecommendationDetail | getModifyRecommendationDetail()
 The details for the modification recommendations. | 
| String | getRightsizingType()
 A recommendation to either terminate or modify the resource. | 
| TerminateRecommendationDetail | getTerminateRecommendationDetail()
 The details for termination recommendations. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setAccountId(String accountId)
 The account that this recommendation is for. | 
| void | setCurrentInstance(CurrentInstance currentInstance)
 Context regarding the current instance. | 
| void | setFindingReasonCodes(Collection<String> 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). | 
| void | setModifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail)
 The details for the modification recommendations. | 
| void | setRightsizingType(String rightsizingType)
 A recommendation to either terminate or modify the resource. | 
| void | setTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
 The details for termination recommendations. | 
| String | toString()Returns a string representation of this object. | 
| RightsizingRecommendation | withAccountId(String accountId)
 The account that this recommendation is for. | 
| RightsizingRecommendation | withCurrentInstance(CurrentInstance currentInstance)
 Context regarding the current instance. | 
| RightsizingRecommendation | withFindingReasonCodes(Collection<String> 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). | 
| RightsizingRecommendation | withFindingReasonCodes(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). | 
| RightsizingRecommendation | withFindingReasonCodes(String... 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). | 
| RightsizingRecommendation | withModifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail)
 The details for the modification recommendations. | 
| RightsizingRecommendation | withRightsizingType(RightsizingType rightsizingType)
 A recommendation to either terminate or modify the resource. | 
| RightsizingRecommendation | withRightsizingType(String rightsizingType)
 A recommendation to either terminate or modify the resource. | 
| RightsizingRecommendation | withTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
 The details for termination recommendations. | 
public void setAccountId(String accountId)
The account that this recommendation is for.
accountId - The account that this recommendation is for.public String getAccountId()
The account that this recommendation is for.
public RightsizingRecommendation withAccountId(String accountId)
The account that this recommendation is for.
accountId - The account that this recommendation is for.public void setCurrentInstance(CurrentInstance currentInstance)
Context regarding the current instance.
currentInstance - Context regarding the current instance.public CurrentInstance getCurrentInstance()
Context regarding the current instance.
public RightsizingRecommendation withCurrentInstance(CurrentInstance currentInstance)
Context regarding the current instance.
currentInstance - Context regarding the current instance.public void setRightsizingType(String rightsizingType)
A recommendation to either terminate or modify the resource.
rightsizingType - A recommendation to either terminate or modify the resource.RightsizingTypepublic String getRightsizingType()
A recommendation to either terminate or modify the resource.
RightsizingTypepublic RightsizingRecommendation withRightsizingType(String rightsizingType)
A recommendation to either terminate or modify the resource.
rightsizingType - A recommendation to either terminate or modify the resource.RightsizingTypepublic RightsizingRecommendation withRightsizingType(RightsizingType rightsizingType)
A recommendation to either terminate or modify the resource.
rightsizingType - A recommendation to either terminate or modify the resource.RightsizingTypepublic void setModifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail)
The details for the modification recommendations.
modifyRecommendationDetail - The details for the modification recommendations.public ModifyRecommendationDetail getModifyRecommendationDetail()
The details for the modification recommendations.
public RightsizingRecommendation withModifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail)
The details for the modification recommendations.
modifyRecommendationDetail - The details for the modification recommendations.public void setTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
The details for termination recommendations.
terminateRecommendationDetail - The details for termination recommendations.public TerminateRecommendationDetail getTerminateRecommendationDetail()
The details for termination recommendations.
public RightsizingRecommendation withTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
The details for termination recommendations.
terminateRecommendationDetail - The details for termination recommendations.public List<String> getFindingReasonCodes()
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
FindingReasonCodepublic void setFindingReasonCodes(Collection<String> 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).
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).FindingReasonCodepublic RightsizingRecommendation withFindingReasonCodes(String... 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).
 NOTE: This method appends the values to the existing list (if any). Use
 setFindingReasonCodes(java.util.Collection) or withFindingReasonCodes(java.util.Collection) if
 you want to override the existing values.
 
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).FindingReasonCodepublic RightsizingRecommendation withFindingReasonCodes(Collection<String> 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).
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).FindingReasonCodepublic RightsizingRecommendation withFindingReasonCodes(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).
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).FindingReasonCodepublic String toString()
toString in class ObjectObject.toString()public RightsizingRecommendation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.