// 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 merge. */
@Fluent
public final class ReservationMergeProperties {
    /*
     * Reservation resource id Created due to the merge. Format of the resource id is
     * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
     */
    @JsonProperty(value = "mergeDestination")
    private String mergeDestination;

    /*
     * 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}
     */
    @JsonProperty(value = "mergeSources")
    private List<String> mergeSources;

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

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

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

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