java.lang.Object
com.azure.resourcemanager.billingbenefits.models.Price
Direct Known Subclasses:
Commitment, PricingCurrencyTotal

public class Price extends Object
The Price model.
  • Constructor Details

    • Price

      public Price()
      Creates an instance of Price class.
  • Method Details

    • currencyCode

      public String currencyCode()
      Get the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.
      Returns:
      the currencyCode value.
    • withCurrencyCode

      public Price withCurrencyCode(String currencyCode)
      Set the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.
      Parameters:
      currencyCode - the currencyCode value to set.
      Returns:
      the Price object itself.
    • amount

      public Double amount()
      Get the amount property: The amount property.
      Returns:
      the amount value.
    • withAmount

      public Price withAmount(Double amount)
      Set the amount property: The amount property.
      Parameters:
      amount - the amount value to set.
      Returns:
      the Price object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.