Class PricingCurrencyTotal

java.lang.Object
com.azure.resourcemanager.billingbenefits.models.Price
com.azure.resourcemanager.billingbenefits.models.PricingCurrencyTotal

public final class PricingCurrencyTotal extends Price
The PricingCurrencyTotal model.
  • Constructor Details

    • PricingCurrencyTotal

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

    • duration

      public PricingCurrencyDuration duration()
      Get the duration property: Represents either billing plan or savings plan term in ISO 8601 format.
      Returns:
      the duration value.
    • withDuration

      public PricingCurrencyTotal withDuration(PricingCurrencyDuration duration)
      Set the duration property: Represents either billing plan or savings plan term in ISO 8601 format.
      Parameters:
      duration - the duration value to set.
      Returns:
      the PricingCurrencyTotal object itself.
    • withCurrencyCode

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

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

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