Class ReservationMergeProperties
java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationMergeProperties
Properties of reservation merge.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ReservationMergeProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the mergeDestination property: Reservation resource id Created due to the merge.Get the mergeSources property: Resource ids of the source reservation's merged to form this reservation.void
validate()
Validates the instance.withMergeDestination
(String mergeDestination) Set the mergeDestination property: Reservation resource id Created due to the merge.withMergeSources
(List<String> mergeSources) Set the mergeSources property: Resource ids of the source reservation's merged to form this reservation.
-
Constructor Details
-
ReservationMergeProperties
public ReservationMergeProperties()Creates an instance of ReservationMergeProperties class.
-
-
Method Details
-
mergeDestination
Get the mergeDestination property: Reservation resource id Created due to the merge. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.- Returns:
- the mergeDestination value.
-
withMergeDestination
Set the mergeDestination property: Reservation resource id Created due to the merge. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.- Parameters:
mergeDestination
- the mergeDestination value to set.- Returns:
- the ReservationMergeProperties object itself.
-
mergeSources
Get the mergeSources property: Resource ids of the source reservation's merged to form this reservation. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.- Returns:
- the mergeSources value.
-
withMergeSources
Set the mergeSources property: Resource ids of the source reservation's merged to form this reservation. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.- Parameters:
mergeSources
- the mergeSources value to set.- Returns:
- the ReservationMergeProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-