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

package com.azure.resourcemanager.streamanalytics.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
 */
@Fluent
public final class ClusterSku {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ClusterSku.class);

    /*
     * Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate)
     * requests.
     */
    @JsonProperty(value = "name")
    private ClusterSkuName name;

    /*
     * Denotes the number of streaming units the cluster can support. Valid
     * values for this property are multiples of 36 with a minimum value of 36
     * and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
     */
    @JsonProperty(value = "capacity")
    private Integer capacity;

    /**
     * Get the name property: Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
     *
     * @return the name value.
     */
    public ClusterSkuName name() {
        return this.name;
    }

    /**
     * Set the name property: Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
     *
     * @param name the name value to set.
     * @return the ClusterSku object itself.
     */
    public ClusterSku withName(ClusterSkuName name) {
        this.name = name;
        return this;
    }

    /**
     * Get the capacity property: Denotes the number of streaming units the cluster can support. Valid values for this
     * property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT
     * (CreateOrUpdate) requests.
     *
     * @return the capacity value.
     */
    public Integer capacity() {
        return this.capacity;
    }

    /**
     * Set the capacity property: Denotes the number of streaming units the cluster can support. Valid values for this
     * property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT
     * (CreateOrUpdate) requests.
     *
     * @param capacity the capacity value to set.
     * @return the ClusterSku object itself.
     */
    public ClusterSku withCapacity(Integer capacity) {
        this.capacity = capacity;
        return this;
    }

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