Class RenewPropertiesResponse

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

public final class RenewPropertiesResponse extends Object implements com.azure.json.JsonSerializable<RenewPropertiesResponse>
The renew properties for a reservation.
  • Constructor Details

    • RenewPropertiesResponse

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

    • purchaseProperties

      public PurchaseRequest purchaseProperties()
      Get the purchaseProperties property: The request for reservation purchase.
      Returns:
      the purchaseProperties value.
    • withPurchaseProperties

      public RenewPropertiesResponse withPurchaseProperties(PurchaseRequest purchaseProperties)
      Set the purchaseProperties property: The request for reservation purchase.
      Parameters:
      purchaseProperties - the purchaseProperties value to set.
      Returns:
      the RenewPropertiesResponse object itself.
    • pricingCurrencyTotal

      public RenewPropertiesResponsePricingCurrencyTotal pricingCurrencyTotal()
      Get the pricingCurrencyTotal property: 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.
      Returns:
      the pricingCurrencyTotal value.
    • withPricingCurrencyTotal

      public RenewPropertiesResponse withPricingCurrencyTotal(RenewPropertiesResponsePricingCurrencyTotal pricingCurrencyTotal)
      Set the pricingCurrencyTotal property: 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.
      Parameters:
      pricingCurrencyTotal - the pricingCurrencyTotal value to set.
      Returns:
      the RenewPropertiesResponse object itself.
    • billingCurrencyTotal

      public RenewPropertiesResponseBillingCurrencyTotal billingCurrencyTotal()
      Get the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included.
      Returns:
      the billingCurrencyTotal value.
    • withBillingCurrencyTotal

      public RenewPropertiesResponse withBillingCurrencyTotal(RenewPropertiesResponseBillingCurrencyTotal billingCurrencyTotal)
      Set the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included.
      Parameters:
      billingCurrencyTotal - the billingCurrencyTotal value to set.
      Returns:
      the RenewPropertiesResponse 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<RenewPropertiesResponse>
      Throws:
      IOException
    • fromJson

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