Class RefundBillingInformation
java.lang.Object
com.azure.resourcemanager.reservations.models.RefundBillingInformation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RefundBillingInformation>
public final class RefundBillingInformation
extends Object
implements com.azure.json.JsonSerializable<RefundBillingInformation>
billing information.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RefundBillingInformation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the billingCurrencyProratedAmount property: Pricing information containing the amount and the currency code.Get the billingCurrencyRemainingCommitmentAmount property: Pricing information containing the amount and the currency code.Get the billingCurrencyTotalPaidAmount property: Pricing information containing the amount and the currency code.Get the billingPlan property: Represent the billing plans.Get the completedTransactions property: The number of completed transactions in this reservation's payment.static RefundBillingInformation
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RefundBillingInformation from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the totalTransactions property: The number of total transactions in this reservation's payment.void
validate()
Validates the instance.withBillingCurrencyProratedAmount
(Price billingCurrencyProratedAmount) Set the billingCurrencyProratedAmount property: Pricing information containing the amount and the currency code.withBillingCurrencyRemainingCommitmentAmount
(Price billingCurrencyRemainingCommitmentAmount) Set the billingCurrencyRemainingCommitmentAmount property: Pricing information containing the amount and the currency code.withBillingCurrencyTotalPaidAmount
(Price billingCurrencyTotalPaidAmount) Set the billingCurrencyTotalPaidAmount property: Pricing information containing the amount and the currency code.withBillingPlan
(ReservationBillingPlan billingPlan) Set the billingPlan property: Represent the billing plans.withCompletedTransactions
(Integer completedTransactions) Set the completedTransactions property: The number of completed transactions in this reservation's payment.withTotalTransactions
(Integer totalTransactions) Set the totalTransactions property: The number of total transactions in this reservation's payment.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
-
RefundBillingInformation
public RefundBillingInformation()Creates an instance of RefundBillingInformation class.
-
-
Method Details
-
billingPlan
Get the billingPlan property: Represent the billing plans.- Returns:
- the billingPlan value.
-
withBillingPlan
Set the billingPlan property: Represent the billing plans.- Parameters:
billingPlan
- the billingPlan value to set.- Returns:
- the RefundBillingInformation object itself.
-
completedTransactions
Get the completedTransactions property: The number of completed transactions in this reservation's payment.- Returns:
- the completedTransactions value.
-
withCompletedTransactions
Set the completedTransactions property: The number of completed transactions in this reservation's payment.- Parameters:
completedTransactions
- the completedTransactions value to set.- Returns:
- the RefundBillingInformation object itself.
-
totalTransactions
Get the totalTransactions property: The number of total transactions in this reservation's payment.- Returns:
- the totalTransactions value.
-
withTotalTransactions
Set the totalTransactions property: The number of total transactions in this reservation's payment.- Parameters:
totalTransactions
- the totalTransactions value to set.- Returns:
- the RefundBillingInformation object itself.
-
billingCurrencyTotalPaidAmount
Get the billingCurrencyTotalPaidAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingCurrencyTotalPaidAmount value.
-
withBillingCurrencyTotalPaidAmount
public RefundBillingInformation withBillingCurrencyTotalPaidAmount(Price billingCurrencyTotalPaidAmount) Set the billingCurrencyTotalPaidAmount property: Pricing information containing the amount and the currency code.- Parameters:
billingCurrencyTotalPaidAmount
- the billingCurrencyTotalPaidAmount value to set.- Returns:
- the RefundBillingInformation object itself.
-
billingCurrencyProratedAmount
Get the billingCurrencyProratedAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingCurrencyProratedAmount value.
-
withBillingCurrencyProratedAmount
public RefundBillingInformation withBillingCurrencyProratedAmount(Price billingCurrencyProratedAmount) Set the billingCurrencyProratedAmount property: Pricing information containing the amount and the currency code.- Parameters:
billingCurrencyProratedAmount
- the billingCurrencyProratedAmount value to set.- Returns:
- the RefundBillingInformation object itself.
-
billingCurrencyRemainingCommitmentAmount
Get the billingCurrencyRemainingCommitmentAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingCurrencyRemainingCommitmentAmount value.
-
withBillingCurrencyRemainingCommitmentAmount
public RefundBillingInformation withBillingCurrencyRemainingCommitmentAmount(Price billingCurrencyRemainingCommitmentAmount) Set the billingCurrencyRemainingCommitmentAmount property: Pricing information containing the amount and the currency code.- Parameters:
billingCurrencyRemainingCommitmentAmount
- the billingCurrencyRemainingCommitmentAmount value to set.- Returns:
- the RefundBillingInformation 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<RefundBillingInformation>
- Throws:
IOException
-
fromJson
public static RefundBillingInformation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RefundBillingInformation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RefundBillingInformation 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 RefundBillingInformation.
-