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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the billingInformation property: billing information.Get the billingRefundAmount property: Pricing information containing the amount and the currency code.static ReservationToExchange
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReservationToExchange from the JsonReader.quantity()
Get the quantity property: Quantity to be returned.Get the reservationId property: Fully qualified id of the reservation being returned.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBillingInformation
(BillingInformation billingInformation) Set the billingInformation property: billing information.withBillingRefundAmount
(Price billingRefundAmount) Set the billingRefundAmount property: Pricing information containing the amount and the currency code.withQuantity
(Integer quantity) Set the quantity property: Quantity to be returned.withReservationId
(String reservationId) Set the reservationId property: Fully qualified id of the reservation being returned.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
-
ReservationToExchange
public ReservationToExchange()Creates an instance of ReservationToExchange class.
-
-
Method Details
-
reservationId
Get the reservationId property: Fully qualified id of the reservation being returned.- Returns:
- the reservationId value.
-
withReservationId
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
Get the quantity property: Quantity to be returned.- Returns:
- the quantity value.
-
withQuantity
Set the quantity property: Quantity to be returned.- Parameters:
quantity
- the quantity value to set.- Returns:
- the ReservationToExchange object itself.
-
billingRefundAmount
Get the billingRefundAmount property: Pricing information containing the amount and the currency code.- Returns:
- the billingRefundAmount value.
-
withBillingRefundAmount
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
Get the billingInformation property: billing information.- Returns:
- the billingInformation value.
-
withBillingInformation
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
- Specified by:
toJson
in interfacecom.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.
-