// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.reservations.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Properties of reservation split. */
@Fluent
public final class ReservationSplitProperties {
    /*
     * List of destination resource id that are created due to split. Format of the resource id is
     * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
     */
    @JsonProperty(value = "splitDestinations")
    private List<String> splitDestinations;

    /*
     * Resource id of the reservation from which this is split. Format of the resource id is
     * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
     */
    @JsonProperty(value = "splitSource")
    private String splitSource;

    /** Creates an instance of ReservationSplitProperties class. */
    public ReservationSplitProperties() {
    }

    /**
     * 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}.
     *
     * @return the splitDestinations value.
     */
    public List<String> splitDestinations() {
        return this.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}.
     *
     * @param splitDestinations the splitDestinations value to set.
     * @return the ReservationSplitProperties object itself.
     */
    public ReservationSplitProperties withSplitDestinations(List<String> splitDestinations) {
        this.splitDestinations = splitDestinations;
        return this;
    }

    /**
     * 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}.
     *
     * @return the splitSource value.
     */
    public String splitSource() {
        return this.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}.
     *
     * @param splitSource the splitSource value to set.
     * @return the ReservationSplitProperties object itself.
     */
    public ReservationSplitProperties withSplitSource(String splitSource) {
        this.splitSource = splitSource;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
