Class BillingInformation
java.lang.Object
com.azure.resourcemanager.reservations.models.BillingInformation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BillingInformation>
public final class BillingInformation
extends Object
implements com.azure.json.JsonSerializable<BillingInformation>
billing information.
-
Constructor Summary
Constructors -
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.static BillingInformation
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BillingInformation from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) 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.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
-
BillingInformation
public BillingInformation()Creates an instance of BillingInformation class.
-
-
Method Details
-
billingCurrencyTotalPaidAmount
Get the billingCurrencyTotalPaidAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingCurrencyTotalPaidAmount value.
-
withBillingCurrencyTotalPaidAmount
Set the billingCurrencyTotalPaidAmount property: Pricing information containing the amount and the currency code.- Parameters:
billingCurrencyTotalPaidAmount
- the billingCurrencyTotalPaidAmount value to set.- Returns:
- the BillingInformation object itself.
-
billingCurrencyProratedAmount
Get the billingCurrencyProratedAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingCurrencyProratedAmount value.
-
withBillingCurrencyProratedAmount
Set the billingCurrencyProratedAmount property: Pricing information containing the amount and the currency code.- Parameters:
billingCurrencyProratedAmount
- the billingCurrencyProratedAmount value to set.- Returns:
- the BillingInformation object itself.
-
billingCurrencyRemainingCommitmentAmount
Get the billingCurrencyRemainingCommitmentAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingCurrencyRemainingCommitmentAmount value.
-
withBillingCurrencyRemainingCommitmentAmount
public BillingInformation 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 BillingInformation 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<BillingInformation>
- Throws:
IOException
-
fromJson
Reads an instance of BillingInformation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of BillingInformation 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 BillingInformation.
-