ReservationSplitProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. ReservationSplitProperties
- com.
Implements
public final class ReservationSplitProperties
implements JsonSerializable<ReservationSplitProperties>
Properties of reservation split.
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationSplitProperties() |
Creates an instance of Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Reservation |
fromJson(JsonReader jsonReader)
Reads an instance of Reservation |
| List<String> |
splitDestinations()
Get the split |
| String |
splitSource()
Get the split |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Reservation |
withSplitDestinations(List<String> splitDestinations)
Set the split |
|
Reservation |
withSplitSource(String splitSource)
Set the split |
Methods inherited from java.lang.Object
Constructor Details
ReservationSplitProperties
public ReservationSplitProperties()
Creates an instance of ReservationSplitProperties class.
Method Details
fromJson
public static ReservationSplitProperties fromJson(JsonReader jsonReader)
Reads an instance of ReservationSplitProperties from the JsonReader.
Parameters:
Returns:
Throws:
splitDestinations
public List<String> splitDestinations()
Get the splitDestinations property: List of destination resource id that are created due to split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Returns:
splitSource
public String splitSource()
Get the splitSource property: Resource id of the reservation from which this is split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Returns:
toJson
validate
public void validate()
Validates the instance.
withSplitDestinations
public ReservationSplitProperties withSplitDestinations(List<String> splitDestinations)
Set the splitDestinations property: List of destination resource id that are created due to split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Parameters:
Returns:
withSplitSource
public ReservationSplitProperties withSplitSource(String splitSource)
Set the splitSource property: Resource id of the reservation from which this is split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Parameters:
Returns: