@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Cost extends Object implements Serializable, Cloneable, StructuredPojo
Defines a cost object.
| Constructor and Description |
|---|
Cost() |
| Modifier and Type | Method and Description |
|---|---|
Cost |
clone() |
boolean |
equals(Object obj) |
Double |
getAmount()
The cost amount.
|
String |
getCurrency()
The cost currency, for example
USD. |
String |
getFrequency()
The cost frequency.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAmount(Double amount)
The cost amount.
|
void |
setCurrency(String currency)
The cost currency, for example
USD. |
void |
setFrequency(String frequency)
The cost frequency.
|
String |
toString()
Returns a string representation of this object.
|
Cost |
withAmount(Double amount)
The cost amount.
|
Cost |
withCurrency(String currency)
The cost currency, for example
USD. |
Cost |
withFrequency(CostFrequency frequency)
The cost frequency.
|
Cost |
withFrequency(String frequency)
The cost frequency.
|
public void setAmount(Double amount)
The cost amount.
amount - The cost amount.public Double getAmount()
The cost amount.
public Cost withAmount(Double amount)
The cost amount.
amount - The cost amount.public void setCurrency(String currency)
The cost currency, for example USD.
currency - The cost currency, for example USD.public String getCurrency()
The cost currency, for example USD.
USD.public Cost withCurrency(String currency)
The cost currency, for example USD.
currency - The cost currency, for example USD.public void setFrequency(String frequency)
The cost frequency.
frequency - The cost frequency.CostFrequencypublic String getFrequency()
The cost frequency.
CostFrequencypublic Cost withFrequency(String frequency)
The cost frequency.
frequency - The cost frequency.CostFrequencypublic Cost withFrequency(CostFrequency frequency)
The cost frequency.
frequency - The cost frequency.CostFrequencypublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.