@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class USD extends Object implements Serializable, Cloneable, StructuredPojo
Represents an amount of money in United States dollars.
Constructor and Description |
---|
USD() |
Modifier and Type | Method and Description |
---|---|
USD |
clone() |
boolean |
equals(Object obj) |
Integer |
getCents()
The fractional portion, in cents, of the amount.
|
Integer |
getDollars()
The whole number of dollars in the amount.
|
Integer |
getTenthFractionsOfACent()
Fractions of a cent, in tenths.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCents(Integer cents)
The fractional portion, in cents, of the amount.
|
void |
setDollars(Integer dollars)
The whole number of dollars in the amount.
|
void |
setTenthFractionsOfACent(Integer tenthFractionsOfACent)
Fractions of a cent, in tenths.
|
String |
toString()
Returns a string representation of this object.
|
USD |
withCents(Integer cents)
The fractional portion, in cents, of the amount.
|
USD |
withDollars(Integer dollars)
The whole number of dollars in the amount.
|
USD |
withTenthFractionsOfACent(Integer tenthFractionsOfACent)
Fractions of a cent, in tenths.
|
public void setDollars(Integer dollars)
The whole number of dollars in the amount.
dollars
- The whole number of dollars in the amount.public Integer getDollars()
The whole number of dollars in the amount.
public USD withDollars(Integer dollars)
The whole number of dollars in the amount.
dollars
- The whole number of dollars in the amount.public void setCents(Integer cents)
The fractional portion, in cents, of the amount.
cents
- The fractional portion, in cents, of the amount.public Integer getCents()
The fractional portion, in cents, of the amount.
public USD withCents(Integer cents)
The fractional portion, in cents, of the amount.
cents
- The fractional portion, in cents, of the amount.public void setTenthFractionsOfACent(Integer tenthFractionsOfACent)
Fractions of a cent, in tenths.
tenthFractionsOfACent
- Fractions of a cent, in tenths.public Integer getTenthFractionsOfACent()
Fractions of a cent, in tenths.
public USD withTenthFractionsOfACent(Integer tenthFractionsOfACent)
Fractions of a cent, in tenths.
tenthFractionsOfACent
- Fractions of a cent, in tenths.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.