Class RenewPropertiesResponsePricingCurrencyTotal

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

public final class RenewPropertiesResponsePricingCurrencyTotal extends Object implements com.azure.json.JsonSerializable<RenewPropertiesResponsePricingCurrencyTotal>
Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked price 30 days before expiry.
  • Constructor Details

    • RenewPropertiesResponsePricingCurrencyTotal

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

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

      Set the amount property: The amount property.
      Parameters:
      amount - the amount value to set.
      Returns:
      the RenewPropertiesResponsePricingCurrencyTotal 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<RenewPropertiesResponsePricingCurrencyTotal>
      Throws:
      IOException
    • fromJson

      public static RenewPropertiesResponsePricingCurrencyTotal fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RenewPropertiesResponsePricingCurrencyTotal from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RenewPropertiesResponsePricingCurrencyTotal 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 RenewPropertiesResponsePricingCurrencyTotal.