// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.reservations.models.AppliedReservationList;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Properties for applied reservations returned. */
@Fluent
public final class AppliedReservationsProperties {
    /*
     * Paginated list of applied reservations
     */
    @JsonProperty(value = "reservationOrderIds")
    private AppliedReservationList reservationOrderIds;

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

    /**
     * Get the reservationOrderIds property: Paginated list of applied reservations.
     *
     * @return the reservationOrderIds value.
     */
    public AppliedReservationList reservationOrderIds() {
        return this.reservationOrderIds;
    }

    /**
     * Set the reservationOrderIds property: Paginated list of applied reservations.
     *
     * @param reservationOrderIds the reservationOrderIds value to set.
     * @return the AppliedReservationsProperties object itself.
     */
    public AppliedReservationsProperties withReservationOrderIds(AppliedReservationList reservationOrderIds) {
        this.reservationOrderIds = reservationOrderIds;
        return this;
    }

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