Class ReservationOrderBillingPlanInformation

java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationOrderBillingPlanInformation
All Implemented Interfaces:
com.azure.json.JsonSerializable<ReservationOrderBillingPlanInformation>

public final class ReservationOrderBillingPlanInformation extends Object implements com.azure.json.JsonSerializable<ReservationOrderBillingPlanInformation>
Information describing the type of billing plan for this reservation.
  • Constructor Details

    • ReservationOrderBillingPlanInformation

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

    • 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.
    • withPricingCurrencyTotal

      public ReservationOrderBillingPlanInformation 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 ReservationOrderBillingPlanInformation object itself.
    • startDate

      public LocalDate startDate()
      Get the startDate property: Date when the billing plan has started.
      Returns:
      the startDate value.
    • withStartDate

      public ReservationOrderBillingPlanInformation withStartDate(LocalDate startDate)
      Set the startDate property: Date when the billing plan has started.
      Parameters:
      startDate - the startDate value to set.
      Returns:
      the ReservationOrderBillingPlanInformation object itself.
    • 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.
    • withNextPaymentDueDate

      public ReservationOrderBillingPlanInformation 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 ReservationOrderBillingPlanInformation object itself.
    • transactions

      public List<PaymentDetail> transactions()
      Get the transactions property: The transactions property.
      Returns:
      the transactions value.
    • withTransactions

      public ReservationOrderBillingPlanInformation withTransactions(List<PaymentDetail> transactions)
      Set the transactions property: The transactions property.
      Parameters:
      transactions - the transactions value to set.
      Returns:
      the ReservationOrderBillingPlanInformation 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<ReservationOrderBillingPlanInformation>
      Throws:
      IOException
    • fromJson

      public static ReservationOrderBillingPlanInformation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ReservationOrderBillingPlanInformation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ReservationOrderBillingPlanInformation 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 ReservationOrderBillingPlanInformation.