// 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;

/** Reservation to return. */
@Fluent
public final class ReservationToReturn {
    /*
     * Fully qualified identifier of the reservation being returned
     */
    @JsonProperty(value = "reservationId")
    private String reservationId;

    /*
     * Quantity to be returned. Must be greater than zero.
     */
    @JsonProperty(value = "quantity")
    private Integer quantity;

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

    /**
     * Get the reservationId property: Fully qualified identifier of the reservation being returned.
     *
     * @return the reservationId value.
     */
    public String reservationId() {
        return this.reservationId;
    }

    /**
     * Set the reservationId property: Fully qualified identifier of the reservation being returned.
     *
     * @param reservationId the reservationId value to set.
     * @return the ReservationToReturn object itself.
     */
    public ReservationToReturn withReservationId(String reservationId) {
        this.reservationId = reservationId;
        return this;
    }

    /**
     * Get the quantity property: Quantity to be returned. Must be greater than zero.
     *
     * @return the quantity value.
     */
    public Integer quantity() {
        return this.quantity;
    }

    /**
     * Set the quantity property: Quantity to be returned. Must be greater than zero.
     *
     * @param quantity the quantity value to set.
     * @return the ReservationToReturn object itself.
     */
    public ReservationToReturn withQuantity(Integer quantity) {
        this.quantity = quantity;
        return this;
    }

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