RenewPropertiesResponse Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.RenewPropertiesResponse

Implements

public final class RenewPropertiesResponse
implements JsonSerializable<RenewPropertiesResponse>

The renew properties for a reservation.

Constructor Summary

Constructor Description
RenewPropertiesResponse()

Creates an instance of RenewPropertiesResponse class.

Method Summary

Modifier and Type Method and Description
Price billingCurrencyTotal()

Get the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency for renewal purchase.

static RenewPropertiesResponse fromJson(JsonReader jsonReader)

Reads an instance of RenewPropertiesResponse from the JsonReader.

Price pricingCurrencyTotal()

Get the pricingCurrencyTotal property: Amount that Microsoft uses for record.

ReservationPurchaseRequest purchaseProperties()

Get the purchaseProperties property: The request for reservation purchase.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RenewPropertiesResponse withBillingCurrencyTotal(Price billingCurrencyTotal)

Set the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency for renewal purchase.

RenewPropertiesResponse withPricingCurrencyTotal(Price pricingCurrencyTotal)

Set the pricingCurrencyTotal property: Amount that Microsoft uses for record.

RenewPropertiesResponse withPurchaseProperties(ReservationPurchaseRequest purchaseProperties)

Set the purchaseProperties property: The request for reservation purchase.

Methods inherited from java.lang.Object

Constructor Details

RenewPropertiesResponse

public RenewPropertiesResponse()

Creates an instance of RenewPropertiesResponse class.

Method Details

billingCurrencyTotal

public Price 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.

fromJson

public static RenewPropertiesResponse fromJson(JsonReader jsonReader)

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.

pricingCurrencyTotal

public Price 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.

purchaseProperties

public ReservationPurchaseRequest purchaseProperties()

Get the purchaseProperties property: The request for reservation purchase.

Returns:

the purchaseProperties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBillingCurrencyTotal

public RenewPropertiesResponse withBillingCurrencyTotal(Price 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.

withPricingCurrencyTotal

public RenewPropertiesResponse withPricingCurrencyTotal(Price 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.

withPurchaseProperties

public RenewPropertiesResponse withPurchaseProperties(ReservationPurchaseRequest purchaseProperties)

Set the purchaseProperties property: The request for reservation purchase.

Parameters:

purchaseProperties - the purchaseProperties value to set.

Returns:

the RenewPropertiesResponse object itself.

Applies to