SplitRequest Class
- java.
lang. Object - com.
azure. resourcemanager. reservations. models. SplitRequest
- com.
Implements
public final class SplitRequest
implements JsonSerializable<SplitRequest>
The request for reservation split.
Constructor Summary
| Constructor | Description |
|---|---|
| SplitRequest() |
Creates an instance of Split |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Split |
fromJson(JsonReader jsonReader)
Reads an instance of Split |
| List<Integer> |
quantities()
Get the quantities property: List of the quantities in the new reservations to create. |
| String |
reservationId()
Get the reservation |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Split |
withQuantities(List<Integer> quantities)
Set the quantities property: List of the quantities in the new reservations to create. |
|
Split |
withReservationId(String reservationId)
Set the reservation |
Methods inherited from java.lang.Object
Constructor Details
SplitRequest
public SplitRequest()
Creates an instance of SplitRequest class.
Method Details
fromJson
public static SplitRequest fromJson(JsonReader jsonReader)
Reads an instance of SplitRequest from the JsonReader.
Parameters:
Returns:
Throws:
quantities
public List<Integer> quantities()
Get the quantities property: List of the quantities in the new reservations to create.
Returns:
reservationId
public String reservationId()
Get the reservationId property: Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Returns:
toJson
validate
public void validate()
Validates the instance.
withQuantities
public SplitRequest withQuantities(List<Integer> quantities)
Set the quantities property: List of the quantities in the new reservations to create.
Parameters:
Returns:
withReservationId
public SplitRequest withReservationId(String reservationId)
Set the reservationId property: Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Parameters:
Returns: