@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Total extends Object implements Serializable, Cloneable, StructuredPojo
Contains the total usage with the corresponding currency unit for that value.
Constructor and Description |
---|
Total() |
Modifier and Type | Method and Description |
---|---|
Total |
clone() |
boolean |
equals(Object obj) |
String |
getAmount()
The total usage.
|
String |
getUnit()
The currency unit that the amount is given in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmount(String amount)
The total usage.
|
void |
setUnit(String unit)
The currency unit that the amount is given in.
|
String |
toString()
Returns a string representation of this object.
|
Total |
withAmount(String amount)
The total usage.
|
Total |
withUnit(String unit)
The currency unit that the amount is given in.
|
public void setAmount(String amount)
The total usage.
amount
- The total usage.public String getAmount()
The total usage.
public Total withAmount(String amount)
The total usage.
amount
- The total usage.public void setUnit(String unit)
The currency unit that the amount is given in.
unit
- The currency unit that the amount is given in.public String getUnit()
The currency unit that the amount is given in.
public Total withUnit(String unit)
The currency unit that the amount is given in.
unit
- The currency unit that the amount is given in.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.