@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()
Details for modification recommendations.
|
String |
getRightsizingType()
Recommendation to either terminate or modify the resource.
|
TerminateRecommendationDetail |
getTerminateRecommendationDetail()
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)
Details for modification recommendations.
|
void |
setRightsizingType(String rightsizingType)
Recommendation to either terminate or modify the resource.
|
void |
setTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
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)
Details for modification recommendations.
|
RightsizingRecommendation |
withRightsizingType(RightsizingType rightsizingType)
Recommendation to either terminate or modify the resource.
|
RightsizingRecommendation |
withRightsizingType(String rightsizingType)
Recommendation to either terminate or modify the resource.
|
RightsizingRecommendation |
withTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
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)
Recommendation to either terminate or modify the resource.
rightsizingType
- Recommendation to either terminate or modify the resource.RightsizingType
public String getRightsizingType()
Recommendation to either terminate or modify the resource.
RightsizingType
public RightsizingRecommendation withRightsizingType(String rightsizingType)
Recommendation to either terminate or modify the resource.
rightsizingType
- Recommendation to either terminate or modify the resource.RightsizingType
public RightsizingRecommendation withRightsizingType(RightsizingType rightsizingType)
Recommendation to either terminate or modify the resource.
rightsizingType
- Recommendation to either terminate or modify the resource.RightsizingType
public void setModifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail)
Details for modification recommendations.
modifyRecommendationDetail
- Details for modification recommendations.public ModifyRecommendationDetail getModifyRecommendationDetail()
Details for modification recommendations.
public RightsizingRecommendation withModifyRecommendationDetail(ModifyRecommendationDetail modifyRecommendationDetail)
Details for modification recommendations.
modifyRecommendationDetail
- Details for modification recommendations.public void setTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
Details for termination recommendations.
terminateRecommendationDetail
- Details for termination recommendations.public TerminateRecommendationDetail getTerminateRecommendationDetail()
Details for termination recommendations.
public RightsizingRecommendation withTerminateRecommendationDetail(TerminateRecommendationDetail terminateRecommendationDetail)
Details for termination recommendations.
terminateRecommendationDetail
- 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).
FindingReasonCode
public 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).FindingReasonCode
public 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).FindingReasonCode
public 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).FindingReasonCode
public 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).FindingReasonCode
public String toString()
toString
in class Object
Object.toString()
public RightsizingRecommendation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.