ReservationOrderBillingPlanInformation Class

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

Implements

public final class ReservationOrderBillingPlanInformation
implements JsonSerializable<ReservationOrderBillingPlanInformation>

Information describing the type of billing plan for this reservation order.

Constructor Summary

Constructor Description
ReservationOrderBillingPlanInformation()

Creates an instance of ReservationOrderBillingPlanInformation class.

Method Summary

Modifier and Type Method and Description
static ReservationOrderBillingPlanInformation fromJson(JsonReader jsonReader)

Reads an instance of ReservationOrderBillingPlanInformation from the JsonReader.

LocalDate nextPaymentDueDate()

Get the nextPaymentDueDate property: For recurring billing plans, indicates the date when next payment will be processed.

Price pricingCurrencyTotal()

Get the pricingCurrencyTotal property: Amount of money to be paid for the Order.

LocalDate startDate()

Get the startDate property: Date when the billing plan has started.

JsonWriter toJson(JsonWriter jsonWriter)
List<ReservationPaymentDetail> transactions()

Get the transactions property: The transactions property.

void validate()

Validates the instance.

ReservationOrderBillingPlanInformation withNextPaymentDueDate(LocalDate nextPaymentDueDate)

Set the nextPaymentDueDate property: For recurring billing plans, indicates the date when next payment will be processed.

ReservationOrderBillingPlanInformation withPricingCurrencyTotal(Price pricingCurrencyTotal)

Set the pricingCurrencyTotal property: Amount of money to be paid for the Order.

ReservationOrderBillingPlanInformation withStartDate(LocalDate startDate)

Set the startDate property: Date when the billing plan has started.

ReservationOrderBillingPlanInformation withTransactions(List<ReservationPaymentDetail> transactions)

Set the transactions property: The transactions property.

Methods inherited from java.lang.Object

Constructor Details

ReservationOrderBillingPlanInformation

public ReservationOrderBillingPlanInformation()

Creates an instance of ReservationOrderBillingPlanInformation class.

Method Details

fromJson

public static ReservationOrderBillingPlanInformation fromJson(JsonReader jsonReader)

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.

nextPaymentDueDate

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

pricingCurrencyTotal

public Price pricingCurrencyTotal()

Get the pricingCurrencyTotal property: Amount of money to be paid for the Order. Tax is not included.

Returns:

the pricingCurrencyTotal value.

startDate

public LocalDate startDate()

Get the startDate property: Date when the billing plan has started.

Returns:

the startDate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transactions

public List<ReservationPaymentDetail> transactions()

Get the transactions property: The transactions property.

Returns:

the transactions value.

validate

public void validate()

Validates the instance.

withNextPaymentDueDate

public ReservationOrderBillingPlanInformation withNextPaymentDueDate(LocalDate nextPaymentDueDate)

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.

withPricingCurrencyTotal

public ReservationOrderBillingPlanInformation withPricingCurrencyTotal(Price pricingCurrencyTotal)

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.

withStartDate

public ReservationOrderBillingPlanInformation withStartDate(LocalDate startDate)

Set the startDate property: Date when the billing plan has started.

Parameters:

startDate - the startDate value to set.

Returns:

the ReservationOrderBillingPlanInformation object itself.

withTransactions

public ReservationOrderBillingPlanInformation withTransactions(List<ReservationPaymentDetail> transactions)

Set the transactions property: The transactions property.

Parameters:

transactions - the transactions value to set.

Returns:

the ReservationOrderBillingPlanInformation object itself.

Applies to