Class CalculatePriceResponseProperties
java.lang.Object
com.azure.resourcemanager.reservations.models.CalculatePriceResponseProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CalculatePriceResponseProperties>
public final class CalculatePriceResponseProperties
extends Object
implements com.azure.json.JsonSerializable<CalculatePriceResponseProperties>
Properties for calculate price response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CalculatePriceResponseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CalculatePriceResponseProperties from the JsonReader.Get the grandTotal property: Total amount in pricing currency.Get the isBillingPartnerManaged property: True if billing is managed by Microsoft Partner.Get the isTaxIncluded property: Whether or not tax is included in grand total.netTotal()
Get the netTotal property: Net total amount in pricing currency.Get the paymentSchedule property: The paymentSchedule property.Get the pricingCurrencyTotal property: Amount that Microsoft uses for record.Get the reservationOrderId property: GUID that represents reservation order that can be placed after calculating price.Get the skuDescription property: Description of sku that is being purchased.skuTitle()
Get the skuTitle property: Title of sku that is being purchased.taxTotal()
Get the taxTotal property: Tax amount in pricing currency.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBillingCurrencyTotal
(CalculatePriceResponsePropertiesBillingCurrencyTotal billingCurrencyTotal) Set the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency.withGrandTotal
(Double grandTotal) Set the grandTotal property: Total amount in pricing currency.withIsBillingPartnerManaged
(Boolean isBillingPartnerManaged) Set the isBillingPartnerManaged property: True if billing is managed by Microsoft Partner.withIsTaxIncluded
(Boolean isTaxIncluded) Set the isTaxIncluded property: Whether or not tax is included in grand total.withNetTotal
(Double netTotal) Set the netTotal property: Net total amount in pricing currency.withPaymentSchedule
(List<PaymentDetail> paymentSchedule) Set the paymentSchedule property: The paymentSchedule property.withPricingCurrencyTotal
(CalculatePriceResponsePropertiesPricingCurrencyTotal pricingCurrencyTotal) Set the pricingCurrencyTotal property: Amount that Microsoft uses for record.withReservationOrderId
(String reservationOrderId) Set the reservationOrderId property: GUID that represents reservation order that can be placed after calculating price.withSkuDescription
(String skuDescription) Set the skuDescription property: Description of sku that is being purchased.withSkuTitle
(String skuTitle) Set the skuTitle property: Title of sku that is being purchased.withTaxTotal
(Double taxTotal) Set the taxTotal property: Tax amount in pricing currency.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
-
CalculatePriceResponseProperties
public CalculatePriceResponseProperties()Creates an instance of CalculatePriceResponseProperties class.
-
-
Method Details
-
billingCurrencyTotal
Get the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency. Tax is not included.- Returns:
- the billingCurrencyTotal value.
-
withBillingCurrencyTotal
public CalculatePriceResponseProperties withBillingCurrencyTotal(CalculatePriceResponsePropertiesBillingCurrencyTotal billingCurrencyTotal) Set the billingCurrencyTotal property: Currency and amount that customer will be charged in customer's local currency. Tax is not included.- Parameters:
billingCurrencyTotal
- the billingCurrencyTotal value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
netTotal
Get the netTotal property: Net total amount in pricing currency.- Returns:
- the netTotal value.
-
withNetTotal
Set the netTotal property: Net total amount in pricing currency.- Parameters:
netTotal
- the netTotal value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
taxTotal
Get the taxTotal property: Tax amount in pricing currency.- Returns:
- the taxTotal value.
-
withTaxTotal
Set the taxTotal property: Tax amount in pricing currency.- Parameters:
taxTotal
- the taxTotal value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
grandTotal
Get the grandTotal property: Total amount in pricing currency.- Returns:
- the grandTotal value.
-
withGrandTotal
Set the grandTotal property: Total amount in pricing currency.- Parameters:
grandTotal
- the grandTotal value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
isTaxIncluded
Get the isTaxIncluded property: Whether or not tax is included in grand total.- Returns:
- the isTaxIncluded value.
-
withIsTaxIncluded
Set the isTaxIncluded property: Whether or not tax is included in grand total.- Parameters:
isTaxIncluded
- the isTaxIncluded value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
isBillingPartnerManaged
Get the isBillingPartnerManaged property: True if billing is managed by Microsoft Partner. Used only for CSP accounts.- Returns:
- the isBillingPartnerManaged value.
-
withIsBillingPartnerManaged
public CalculatePriceResponseProperties withIsBillingPartnerManaged(Boolean isBillingPartnerManaged) Set the isBillingPartnerManaged property: True if billing is managed by Microsoft Partner. Used only for CSP accounts.- Parameters:
isBillingPartnerManaged
- the isBillingPartnerManaged value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
reservationOrderId
Get the reservationOrderId property: GUID that represents reservation order that can be placed after calculating price.- Returns:
- the reservationOrderId value.
-
withReservationOrderId
Set the reservationOrderId property: GUID that represents reservation order that can be placed after calculating price.- Parameters:
reservationOrderId
- the reservationOrderId value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
skuTitle
Get the skuTitle property: Title of sku that is being purchased.- Returns:
- the skuTitle value.
-
withSkuTitle
Set the skuTitle property: Title of sku that is being purchased.- Parameters:
skuTitle
- the skuTitle value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
skuDescription
Get the skuDescription property: Description of sku that is being purchased.- Returns:
- the skuDescription value.
-
withSkuDescription
Set the skuDescription property: Description of sku that is being purchased.- Parameters:
skuDescription
- the skuDescription value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
pricingCurrencyTotal
Get the pricingCurrencyTotal property: Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.- Returns:
- the pricingCurrencyTotal value.
-
withPricingCurrencyTotal
public CalculatePriceResponseProperties withPricingCurrencyTotal(CalculatePriceResponsePropertiesPricingCurrencyTotal pricingCurrencyTotal) Set the pricingCurrencyTotal property: Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included.- Parameters:
pricingCurrencyTotal
- the pricingCurrencyTotal value to set.- Returns:
- the CalculatePriceResponseProperties object itself.
-
paymentSchedule
Get the paymentSchedule property: The paymentSchedule property.- Returns:
- the paymentSchedule value.
-
withPaymentSchedule
Set the paymentSchedule property: The paymentSchedule property.- Parameters:
paymentSchedule
- the paymentSchedule value to set.- Returns:
- the CalculatePriceResponseProperties 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<CalculatePriceResponseProperties>
- Throws:
IOException
-
fromJson
public static CalculatePriceResponseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CalculatePriceResponseProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CalculatePriceResponseProperties 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 CalculatePriceResponseProperties.
-