Class ReservationToExchange

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

public final class ReservationToExchange extends Object implements com.azure.json.JsonSerializable<ReservationToExchange>
Reservation refund details.
  • Constructor Details

    • ReservationToExchange

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

    • reservationId

      public String reservationId()
      Get the reservationId property: Fully qualified id of the reservation being returned.
      Returns:
      the reservationId value.
    • withReservationId

      public ReservationToExchange withReservationId(String reservationId)
      Set the reservationId property: Fully qualified id of the reservation being returned.
      Parameters:
      reservationId - the reservationId value to set.
      Returns:
      the ReservationToExchange object itself.
    • quantity

      public Integer quantity()
      Get the quantity property: Quantity to be returned.
      Returns:
      the quantity value.
    • withQuantity

      public ReservationToExchange withQuantity(Integer quantity)
      Set the quantity property: Quantity to be returned.
      Parameters:
      quantity - the quantity value to set.
      Returns:
      the ReservationToExchange object itself.
    • billingRefundAmount

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

      public ReservationToExchange withBillingRefundAmount(Price billingRefundAmount)
      Set the billingRefundAmount property: Pricing information containing the amount and the currency code.
      Parameters:
      billingRefundAmount - the billingRefundAmount value to set.
      Returns:
      the ReservationToExchange object itself.
    • billingInformation

      public BillingInformation billingInformation()
      Get the billingInformation property: billing information.
      Returns:
      the billingInformation value.
    • withBillingInformation

      public ReservationToExchange withBillingInformation(BillingInformation billingInformation)
      Set the billingInformation property: billing information.
      Parameters:
      billingInformation - the billingInformation value to set.
      Returns:
      the ReservationToExchange 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<ReservationToExchange>
      Throws:
      IOException
    • fromJson

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