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 Details

    • ReservationSplitProperties

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

    • 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:
      the splitDestinations value.
    • 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:
      splitDestinations - the splitDestinations value to set.
      Returns:
      the ReservationSplitProperties object itself.
    • 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:
      the splitSource value.
    • 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:
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.