Class CalculatePriceResponsePropertiesBillingCurrencyTotal

java.lang.Object
com.azure.resourcemanager.reservations.models.CalculatePriceResponsePropertiesBillingCurrencyTotal
All Implemented Interfaces:
com.azure.json.JsonSerializable<CalculatePriceResponsePropertiesBillingCurrencyTotal>

public final class CalculatePriceResponsePropertiesBillingCurrencyTotal extends Object implements com.azure.json.JsonSerializable<CalculatePriceResponsePropertiesBillingCurrencyTotal>
Currency and amount that customer will be charged in customer's local currency. Tax is not included.
  • Constructor Details

    • CalculatePriceResponsePropertiesBillingCurrencyTotal

      public CalculatePriceResponsePropertiesBillingCurrencyTotal()
      Creates an instance of CalculatePriceResponsePropertiesBillingCurrencyTotal 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 CalculatePriceResponsePropertiesBillingCurrencyTotal 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 CalculatePriceResponsePropertiesBillingCurrencyTotal object itself.
    • amount

      public Double amount()
      Get the amount property: Amount in pricing currency. Tax is not included.
      Returns:
      the amount value.
    • withAmount

      Set the amount property: Amount in pricing currency. Tax is not included.
      Parameters:
      amount - the amount value to set.
      Returns:
      the CalculatePriceResponsePropertiesBillingCurrencyTotal object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CalculatePriceResponsePropertiesBillingCurrencyTotal>
      Throws:
      IOException
    • fromJson

      public static CalculatePriceResponsePropertiesBillingCurrencyTotal fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CalculatePriceResponsePropertiesBillingCurrencyTotal from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CalculatePriceResponsePropertiesBillingCurrencyTotal if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the CalculatePriceResponsePropertiesBillingCurrencyTotal.