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

package com.azure.resourcemanager.costmanagement.models;

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

/** The benefit resource model definition. */
@Fluent
public class BenefitResource extends ProxyResource {
    /*
     * Reservation or SavingsPlan.
     */
    @JsonProperty(value = "kind")
    private BenefitKind kind;

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

    /**
     * Get the kind property: Reservation or SavingsPlan.
     *
     * @return the kind value.
     */
    public BenefitKind kind() {
        return this.kind;
    }

    /**
     * Set the kind property: Reservation or SavingsPlan.
     *
     * @param kind the kind value to set.
     * @return the BenefitResource object itself.
     */
    public BenefitResource withKind(BenefitKind kind) {
        this.kind = kind;
        return this;
    }

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