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 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
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.
-
-
-
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,
USD
means "U.S. dollars."- Parameters:
currencyCode
- The currency code of a monetary amount. For example,USD
means "U.S. dollars."- See Also:
CurrencyCode
-
getCurrencyCode
public String getCurrencyCode()
The currency code of a monetary amount. For example,
USD
means "U.S. dollars."- Returns:
- The currency code of a monetary amount. For example,
USD
means "U.S. dollars." - See Also:
CurrencyCode
-
withCurrencyCode
public MonetaryAmount withCurrencyCode(String currencyCode)
The currency code of a monetary amount. For example,
USD
means "U.S. dollars."- Parameters:
currencyCode
- The currency code of a monetary amount. For example,USD
means "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,
USD
means "U.S. dollars."- Parameters:
currencyCode
- The currency code of a monetary amount. For example,USD
means "U.S. dollars."- See Also:
CurrencyCode
-
withCurrencyCode
public MonetaryAmount withCurrencyCode(CurrencyCode currencyCode)
The currency code of a monetary amount. For example,
USD
means "U.S. dollars."- Parameters:
currencyCode
- The currency code of a monetary amount. For example,USD
means "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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MonetaryAmount clone()
-
-