Class ReservationSplitProperties
java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationSplitProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReservationSplitProperties>
public final class ReservationSplitProperties
extends Object
implements com.azure.json.JsonSerializable<ReservationSplitProperties>
Properties of reservation split.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ReservationSplitProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReservationSplitProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReservationSplitProperties from the JsonReader.Get the splitDestinations property: List of destination resource id that are created due to split.Get the splitSource property: Resource id of the reservation from which this is split.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withSplitDestinations
(List<String> splitDestinations) Set the splitDestinations property: List of destination resource id that are created due to split.withSplitSource
(String splitSource) Set the splitSource property: Resource id of the reservation from which this is split.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
-
ReservationSplitProperties
public ReservationSplitProperties()Creates an instance of ReservationSplitProperties class.
-
-
Method Details
-
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:
- the splitDestinations value.
-
withSplitDestinations
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:
splitDestinations
- the splitDestinations value to set.- Returns:
- the ReservationSplitProperties object itself.
-
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:
- the splitSource value.
-
withSplitSource
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:
splitSource
- the splitSource value to set.- Returns:
- the ReservationSplitProperties 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<ReservationSplitProperties>
- Throws:
IOException
-
fromJson
public static ReservationSplitProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ReservationSplitProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ReservationSplitProperties 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 ReservationSplitProperties.
-