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

/** Represents available Sku pricing tiers. */
@Fluent
public final class NamespaceSku {
    /*
     * The name of the SKU.
     */
    @JsonProperty(value = "name")
    private SkuName name;

    /*
     * Specifies the number of Throughput Units that defines the capacity for the namespace. The property default value
     * is
     * 1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace. Min capacity is 1 and
     * max allowed capacity is 20.
     */
    @JsonProperty(value = "capacity")
    private Integer capacity;

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

    /**
     * Get the name property: The name of the SKU.
     *
     * @return the name value.
     */
    public SkuName name() {
        return this.name;
    }

    /**
     * Set the name property: The name of the SKU.
     *
     * @param name the name value to set.
     * @return the NamespaceSku object itself.
     */
    public NamespaceSku withName(SkuName name) {
        this.name = name;
        return this;
    }

    /**
     * Get the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace.
     * The property default value is 1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace.
     * Min capacity is 1 and max allowed capacity is 20.
     *
     * @return the capacity value.
     */
    public Integer capacity() {
        return this.capacity;
    }

    /**
     * Set the capacity property: Specifies the number of Throughput Units that defines the capacity for the namespace.
     * The property default value is 1 which signifies 1 Throughput Unit = 1MB/s ingress and 2MB/s egress per namespace.
     * Min capacity is 1 and max allowed capacity is 20.
     *
     * @param capacity the capacity value to set.
     * @return the NamespaceSku object itself.
     */
    public NamespaceSku withCapacity(Integer capacity) {
        this.capacity = capacity;
        return this;
    }

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