@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EstimatedMonthlySavings extends Object implements Serializable, Cloneable, StructuredPojo
Describes the estimated monthly savings amount possible, based on On-Demand instance pricing, by adopting Compute Optimizer recommendations for a given resource.
For more information, see Estimated monthly savings and savings opportunities in the Compute Optimizer User Guide.
| Constructor and Description |
|---|
EstimatedMonthlySavings() |
| Modifier and Type | Method and Description |
|---|---|
EstimatedMonthlySavings |
clone() |
boolean |
equals(Object obj) |
String |
getCurrency()
The currency of the estimated monthly savings.
|
Double |
getValue()
The value of the estimated monthly savings.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCurrency(String currency)
The currency of the estimated monthly savings.
|
void |
setValue(Double value)
The value of the estimated monthly savings.
|
String |
toString()
Returns a string representation of this object.
|
EstimatedMonthlySavings |
withCurrency(Currency currency)
The currency of the estimated monthly savings.
|
EstimatedMonthlySavings |
withCurrency(String currency)
The currency of the estimated monthly savings.
|
EstimatedMonthlySavings |
withValue(Double value)
The value of the estimated monthly savings.
|
public void setCurrency(String currency)
The currency of the estimated monthly savings.
currency - The currency of the estimated monthly savings.Currencypublic String getCurrency()
The currency of the estimated monthly savings.
Currencypublic EstimatedMonthlySavings withCurrency(String currency)
The currency of the estimated monthly savings.
currency - The currency of the estimated monthly savings.Currencypublic EstimatedMonthlySavings withCurrency(Currency currency)
The currency of the estimated monthly savings.
currency - The currency of the estimated monthly savings.Currencypublic void setValue(Double value)
The value of the estimated monthly savings.
value - The value of the estimated monthly savings.public Double getValue()
The value of the estimated monthly savings.
public EstimatedMonthlySavings withValue(Double value)
The value of the estimated monthly savings.
value - The value of the estimated monthly savings.public String toString()
toString in class ObjectObject.toString()public EstimatedMonthlySavings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.