Class MonetaryAmount
java.lang.Object
com.amazonaws.services.devicefarm.model.MonetaryAmount
- All Implemented Interfaces:
Serializable
,Cloneable
A number representing the monetary amount for an offering or transaction.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The numerical amount of an offering or transaction.The currency code of a monetary amount.int
hashCode()
void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withAmount
(Double amount) The numerical amount of an offering or transaction.withCurrencyCode
(CurrencyCode currencyCode) The currency code of a monetary amount.withCurrencyCode
(String currencyCode) The currency code of a monetary amount.
-
Constructor Details
-
MonetaryAmount
public MonetaryAmount()
-
-
Method Details
-
setAmount
The numerical amount of an offering or transaction.
- Parameters:
amount
- The numerical amount of an offering or transaction.
-
getAmount
The numerical amount of an offering or transaction.
- Returns:
- The numerical amount of an offering or transaction.
-
withAmount
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
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:
-
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:
-
withCurrencyCode
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:
-
setCurrencyCode
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:
-
withCurrencyCode
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:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-