Class ReservationMergeProperties

java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationMergeProperties

public final class ReservationMergeProperties extends Object
Properties of reservation merge.
  • Constructor Details

    • ReservationMergeProperties

      public ReservationMergeProperties()
      Creates an instance of ReservationMergeProperties class.
  • Method Details

    • mergeDestination

      public String 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

      public ReservationMergeProperties withMergeDestination(String mergeDestination)
      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

      public List<String> 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

      public ReservationMergeProperties withMergeSources(List<String> mergeSources)
      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.