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 Details

    • RefundBillingInformation

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

    • billingPlan

      public ReservationBillingPlan billingPlan()
      Get the billingPlan property: Represent the billing plans.
      Returns:
      the billingPlan value.
    • withBillingPlan

      public RefundBillingInformation withBillingPlan(ReservationBillingPlan billingPlan)
      Set the billingPlan property: Represent the billing plans.
      Parameters:
      billingPlan - the billingPlan value to set.
      Returns:
      the RefundBillingInformation object itself.
    • completedTransactions

      public Integer completedTransactions()
      Get the completedTransactions property: The number of completed transactions in this reservation's payment.
      Returns:
      the completedTransactions value.
    • withCompletedTransactions

      public RefundBillingInformation withCompletedTransactions(Integer completedTransactions)
      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

      public Integer totalTransactions()
      Get the totalTransactions property: The number of total transactions in this reservation's payment.
      Returns:
      the totalTransactions value.
    • withTotalTransactions

      public RefundBillingInformation withTotalTransactions(Integer totalTransactions)
      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

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

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

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.