Class ReservationOrderBillingPlanInformation
java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationOrderBillingPlanInformation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReservationOrderBillingPlanInformation>
public final class ReservationOrderBillingPlanInformation
extends Object
implements com.azure.json.JsonSerializable<ReservationOrderBillingPlanInformation>
Information describing the type of billing plan for this reservation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ReservationOrderBillingPlanInformation class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReservationOrderBillingPlanInformation from the JsonReader.Get the nextPaymentDueDate property: For recurring billing plans, indicates the date when next payment will be processed.Get the pricingCurrencyTotal property: Amount of money to be paid for the Order.Get the startDate property: Date when the billing plan has started.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the transactions property: The transactions property.void
validate()
Validates the instance.withNextPaymentDueDate
(LocalDate nextPaymentDueDate) Set the nextPaymentDueDate property: For recurring billing plans, indicates the date when next payment will be processed.withPricingCurrencyTotal
(Price pricingCurrencyTotal) Set the pricingCurrencyTotal property: Amount of money to be paid for the Order.withStartDate
(LocalDate startDate) Set the startDate property: Date when the billing plan has started.withTransactions
(List<PaymentDetail> transactions) Set the transactions property: The transactions property.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
-
ReservationOrderBillingPlanInformation
public ReservationOrderBillingPlanInformation()Creates an instance of ReservationOrderBillingPlanInformation class.
-
-
Method Details
-
pricingCurrencyTotal
Get the pricingCurrencyTotal property: Amount of money to be paid for the Order. Tax is not included.- Returns:
- the pricingCurrencyTotal value.
-
withPricingCurrencyTotal
Set the pricingCurrencyTotal property: Amount of money to be paid for the Order. Tax is not included.- Parameters:
pricingCurrencyTotal
- the pricingCurrencyTotal value to set.- Returns:
- the ReservationOrderBillingPlanInformation object itself.
-
startDate
Get the startDate property: Date when the billing plan has started.- Returns:
- the startDate value.
-
withStartDate
Set the startDate property: Date when the billing plan has started.- Parameters:
startDate
- the startDate value to set.- Returns:
- the ReservationOrderBillingPlanInformation object itself.
-
nextPaymentDueDate
Get the nextPaymentDueDate property: For recurring billing plans, indicates the date when next payment will be processed. Null when total is paid off.- Returns:
- the nextPaymentDueDate value.
-
withNextPaymentDueDate
Set the nextPaymentDueDate property: For recurring billing plans, indicates the date when next payment will be processed. Null when total is paid off.- Parameters:
nextPaymentDueDate
- the nextPaymentDueDate value to set.- Returns:
- the ReservationOrderBillingPlanInformation object itself.
-
transactions
Get the transactions property: The transactions property.- Returns:
- the transactions value.
-
withTransactions
Set the transactions property: The transactions property.- Parameters:
transactions
- the transactions value to set.- Returns:
- the ReservationOrderBillingPlanInformation 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<ReservationOrderBillingPlanInformation>
- Throws:
IOException
-
fromJson
public static ReservationOrderBillingPlanInformation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ReservationOrderBillingPlanInformation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ReservationOrderBillingPlanInformation 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 ReservationOrderBillingPlanInformation.
-