Class ReservationMergeProperties

java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationMergeProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ReservationMergeProperties>

public final class ReservationMergeProperties extends Object implements com.azure.json.JsonSerializable<ReservationMergeProperties>
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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ReservationMergeProperties>
      Throws:
      IOException
    • fromJson

      public static ReservationMergeProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ReservationMergeProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ReservationMergeProperties 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 ReservationMergeProperties.