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

package com.azure.resourcemanager.eventgrid.models;

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

/** Describes an EventGrid Resource Sku. */
@Fluent
public final class ResourceSku {
    /*
     * The Sku name of the resource. The possible values are: Basic or Premium.
     */
    @JsonProperty(value = "name")
    private Sku name;

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

    /**
     * Get the name property: The Sku name of the resource. The possible values are: Basic or Premium.
     *
     * @return the name value.
     */
    public Sku name() {
        return this.name;
    }

    /**
     * Set the name property: The Sku name of the resource. The possible values are: Basic or Premium.
     *
     * @param name the name value to set.
     * @return the ResourceSku object itself.
     */
    public ResourceSku withName(Sku name) {
        this.name = name;
        return this;
    }

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