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

package com.azure.resourcemanager.compute.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The parameters of a capacity reservation Profile. */
@Fluent
public final class CapacityReservationProfile {
    /*
     * Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or
     * scaleset vm instances provided enough capacity has been reserved. Please refer to
     * https://aka.ms/CapacityReservation for more details.
     */
    @JsonProperty(value = "capacityReservationGroup")
    private SubResource capacityReservationGroup;

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

    /**
     * Get the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be
     * used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved.
     * Please refer to https://aka.ms/CapacityReservation for more details.
     *
     * @return the capacityReservationGroup value.
     */
    public SubResource capacityReservationGroup() {
        return this.capacityReservationGroup;
    }

    /**
     * Set the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be
     * used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved.
     * Please refer to https://aka.ms/CapacityReservation for more details.
     *
     * @param capacityReservationGroup the capacityReservationGroup value to set.
     * @return the CapacityReservationProfile object itself.
     */
    public CapacityReservationProfile withCapacityReservationGroup(SubResource capacityReservationGroup) {
        this.capacityReservationGroup = capacityReservationGroup;
        return this;
    }

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