BillingPlanInformation Class

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

Implements

public final class BillingPlanInformation
implements JsonSerializable<BillingPlanInformation>

Information describing the type of billing plan for this savings plan.

Constructor Summary

Constructor Description
BillingPlanInformation()

Creates an instance of BillingPlanInformation class.

Method Summary

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

Reads an instance of BillingPlanInformation 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<PaymentDetail> transactions()

Get the transactions property: The transactions property.

void validate()

Validates the instance.

BillingPlanInformation withNextPaymentDueDate(LocalDate nextPaymentDueDate)

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

BillingPlanInformation withPricingCurrencyTotal(Price pricingCurrencyTotal)

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

BillingPlanInformation withStartDate(LocalDate startDate)

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

BillingPlanInformation withTransactions(List<PaymentDetail> transactions)

Set the transactions property: The transactions property.

Methods inherited from java.lang.Object

Constructor Details

BillingPlanInformation

public BillingPlanInformation()

Creates an instance of BillingPlanInformation class.

Method Details

fromJson

public static BillingPlanInformation fromJson(JsonReader jsonReader)

Reads an instance of BillingPlanInformation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BillingPlanInformation 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 BillingPlanInformation.

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<PaymentDetail> transactions()

Get the transactions property: The transactions property.

Returns:

the transactions value.

validate

public void validate()

Validates the instance.

withNextPaymentDueDate

public BillingPlanInformation 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 BillingPlanInformation object itself.

withPricingCurrencyTotal

public BillingPlanInformation 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 BillingPlanInformation object itself.

withStartDate

public BillingPlanInformation withStartDate(LocalDate startDate)

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

Parameters:

startDate - the startDate value to set.

Returns:

the BillingPlanInformation object itself.

withTransactions

public BillingPlanInformation withTransactions(List<PaymentDetail> transactions)

Set the transactions property: The transactions property.

Parameters:

transactions - the transactions value to set.

Returns:

the BillingPlanInformation object itself.

Applies to