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 Summary
ConstructorsConstructorDescriptionCreates an instance of RenewPropertiesResponse class. -
Method Summary
Modifier and TypeMethodDescriptionGet the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency for renewal purchase.static RenewPropertiesResponse
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RenewPropertiesResponse from the JsonReader.Get the pricingCurrencyTotal property: Amount that Microsoft uses for record.Get the purchaseProperties property: The request for reservation purchase.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBillingCurrencyTotal
(RenewPropertiesResponseBillingCurrencyTotal billingCurrencyTotal) Set the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency for renewal purchase.withPricingCurrencyTotal
(RenewPropertiesResponsePricingCurrencyTotal pricingCurrencyTotal) Set the pricingCurrencyTotal property: Amount that Microsoft uses for record.withPurchaseProperties
(PurchaseRequest purchaseProperties) Set the purchaseProperties property: The request for reservation purchase.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RenewPropertiesResponse
public RenewPropertiesResponse()Creates an instance of RenewPropertiesResponse class.
-
-
Method Details
-
purchaseProperties
Get the purchaseProperties property: The request for reservation purchase.- Returns:
- the purchaseProperties value.
-
withPurchaseProperties
Set the purchaseProperties property: The request for reservation purchase.- Parameters:
purchaseProperties
- the purchaseProperties value to set.- Returns:
- the RenewPropertiesResponse object itself.
-
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
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
- Specified by:
toJson
in interfacecom.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.
-