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:
  • Constructor Details

    • MonetaryAmount

      public MonetaryAmount()
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public MonetaryAmount clone()
      Overrides:
      clone in class Object