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 Details

    • BillingInformation

      public BillingInformation()
      Creates an instance of BillingInformation class.
  • Method Details

    • billingCurrencyTotalPaidAmount

      public Price billingCurrencyTotalPaidAmount()
      Get the billingCurrencyTotalPaidAmount property: Pricing information containing the amount and the currency code.
      Returns:
      the billingCurrencyTotalPaidAmount value.
    • withBillingCurrencyTotalPaidAmount

      public BillingInformation 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 BillingInformation object itself.
    • billingCurrencyProratedAmount

      public Price billingCurrencyProratedAmount()
      Get the billingCurrencyProratedAmount property: Pricing information containing the amount and the currency code.
      Returns:
      the billingCurrencyProratedAmount value.
    • withBillingCurrencyProratedAmount

      public BillingInformation 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 BillingInformation object itself.
    • billingCurrencyRemainingCommitmentAmount

      public Price 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BillingInformation>
      Throws:
      IOException
    • fromJson

      public static BillingInformation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.