@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MonetaryAmount extends Object implements Serializable, Cloneable, StructuredPojo
A number representing the monetary amount for an offering or transaction.
Constructor and Description |
---|
MonetaryAmount() |
Modifier and Type | Method and Description |
---|---|
MonetaryAmount |
clone() |
boolean |
equals(Object obj) |
Double |
getAmount()
The numerical amount of an offering or transaction.
|
String |
getCurrencyCode()
The currency code of a monetary amount.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAmount(Double amount)
The numerical amount of an offering or transaction.
|
void |
setCurrencyCode(CurrencyCode currencyCode)
The currency code of a monetary amount.
|
void |
setCurrencyCode(String currencyCode)
The currency code of a monetary amount.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MonetaryAmount |
withAmount(Double amount)
The numerical amount of an offering or transaction.
|
MonetaryAmount |
withCurrencyCode(CurrencyCode currencyCode)
The currency code of a monetary amount.
|
MonetaryAmount |
withCurrencyCode(String currencyCode)
The currency code of a monetary amount.
|
public void setAmount(Double amount)
The numerical amount of an offering or transaction.
amount
- The numerical amount of an offering or transaction.public Double getAmount()
The numerical amount of an offering or transaction.
public MonetaryAmount withAmount(Double amount)
The numerical amount of an offering or transaction.
amount
- The numerical amount of an offering or transaction.public void setCurrencyCode(String currencyCode)
The currency code of a monetary amount. For example, USD
means "U.S. dollars."
currencyCode
- The currency code of a monetary amount. For example, USD
means "U.S. dollars."CurrencyCode
public String getCurrencyCode()
The currency code of a monetary amount. For example, USD
means "U.S. dollars."
USD
means "U.S. dollars."CurrencyCode
public MonetaryAmount withCurrencyCode(String currencyCode)
The currency code of a monetary amount. For example, USD
means "U.S. dollars."
currencyCode
- The currency code of a monetary amount. For example, USD
means "U.S. dollars."CurrencyCode
public void setCurrencyCode(CurrencyCode currencyCode)
The currency code of a monetary amount. For example, USD
means "U.S. dollars."
currencyCode
- The currency code of a monetary amount. For example, USD
means "U.S. dollars."CurrencyCode
public MonetaryAmount withCurrencyCode(CurrencyCode currencyCode)
The currency code of a monetary amount. For example, USD
means "U.S. dollars."
currencyCode
- The currency code of a monetary amount. For example, USD
means "U.S. dollars."CurrencyCode
public String toString()
toString
in class Object
Object.toString()
public MonetaryAmount clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.