ReservationSwapProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. ReservationSwapProperties
- com.
Implements
public final class ReservationSwapProperties
implements JsonSerializable<ReservationSwapProperties>
Properties of reservation swap.
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationSwapProperties() |
Creates an instance of Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Reservation |
fromJson(JsonReader jsonReader)
Reads an instance of Reservation |
| String |
swapDestination()
Get the swap |
| String |
swapSource()
Get the swap |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Reservation |
withSwapDestination(String swapDestination)
Set the swap |
|
Reservation |
withSwapSource(String swapSource)
Set the swap |
Methods inherited from java.lang.Object
Constructor Details
ReservationSwapProperties
public ReservationSwapProperties()
Creates an instance of ReservationSwapProperties class.
Method Details
fromJson
public static ReservationSwapProperties fromJson(JsonReader jsonReader)
Reads an instance of ReservationSwapProperties from the JsonReader.
Parameters:
Returns:
Throws:
swapDestination
public String swapDestination()
Get the swapDestination property: Reservation resource id that the original resource gets swapped to. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Returns:
swapSource
public String swapSource()
Get the swapSource property: Resource id of the source reservation that gets swapped. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSwapDestination
public ReservationSwapProperties withSwapDestination(String swapDestination)
Set the swapDestination property: Reservation resource id that the original resource gets swapped to. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Parameters:
Returns:
withSwapSource
public ReservationSwapProperties withSwapSource(String swapSource)
Set the swapSource property: Resource id of the source reservation that gets swapped. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Parameters:
Returns: