Class MonetaryAmount
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.MonetaryAmount
-
- All Implemented Interfaces:
Serializable,Cloneable
public class MonetaryAmount extends Object implements Serializable, Cloneable
A number representing the monetary amount for an offering or transaction.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MonetaryAmount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonetaryAmountclone()booleanequals(Object obj)DoublegetAmount()The numerical amount of an offering or transaction.StringgetCurrencyCode()The currency code of a monetary amount.inthashCode()voidsetAmount(Double amount)The numerical amount of an offering or transaction.voidsetCurrencyCode(CurrencyCode currencyCode)The currency code of a monetary amount.voidsetCurrencyCode(String currencyCode)The currency code of a monetary amount.StringtoString()Returns a string representation of this object; useful for testing and debugging.MonetaryAmountwithAmount(Double amount)The numerical amount of an offering or transaction.MonetaryAmountwithCurrencyCode(CurrencyCode currencyCode)The currency code of a monetary amount.MonetaryAmountwithCurrencyCode(String currencyCode)The currency code of a monetary amount.
-
-
-
Method Detail
-
setAmount
public void setAmount(Double amount)
The numerical amount of an offering or transaction.
- Parameters:
amount- The numerical amount of an offering or transaction.
-
getAmount
public Double getAmount()
The numerical amount of an offering or transaction.
- Returns:
- The numerical amount of an offering or transaction.
-
withAmount
public MonetaryAmount withAmount(Double amount)
The numerical amount of an offering or transaction.
- Parameters:
amount- The numerical amount of an offering or transaction.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
The currency code of a monetary amount. For example,
USDmeans "U.S. dollars."- Parameters:
currencyCode- The currency code of a monetary amount. For example,USDmeans "U.S. dollars."- See Also:
CurrencyCode
-
getCurrencyCode
public String getCurrencyCode()
The currency code of a monetary amount. For example,
USDmeans "U.S. dollars."- Returns:
- The currency code of a monetary amount. For example,
USDmeans "U.S. dollars." - See Also:
CurrencyCode
-
withCurrencyCode
public MonetaryAmount withCurrencyCode(String currencyCode)
The currency code of a monetary amount. For example,
USDmeans "U.S. dollars."- Parameters:
currencyCode- The currency code of a monetary amount. For example,USDmeans "U.S. dollars."- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCode
-
setCurrencyCode
public void setCurrencyCode(CurrencyCode currencyCode)
The currency code of a monetary amount. For example,
USDmeans "U.S. dollars."- Parameters:
currencyCode- The currency code of a monetary amount. For example,USDmeans "U.S. dollars."- See Also:
CurrencyCode
-
withCurrencyCode
public MonetaryAmount withCurrencyCode(CurrencyCode currencyCode)
The currency code of a monetary amount. For example,
USDmeans "U.S. dollars."- Parameters:
currencyCode- The currency code of a monetary amount. For example,USDmeans "U.S. dollars."- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
CurrencyCode
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MonetaryAmount clone()
-
-