Sku.java

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

package com.azure.analytics.synapse.artifacts.models;

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

/** Sku SQL pool SKU. */
@Fluent
public final class Sku {
    /*
     * The service tier
     */
    @JsonProperty(value = "tier")
    private String tier;

    /*
     * The SKU name
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * If the SKU supports scale out/in then the capacity integer should be
     * included. If scale out/in is not possible for the resource this may be
     * omitted.
     */
    @JsonProperty(value = "capacity")
    private Integer capacity;

    /**
     * Get the tier property: The service tier.
     *
     * @return the tier value.
     */
    public String getTier() {
        return this.tier;
    }

    /**
     * Set the tier property: The service tier.
     *
     * @param tier the tier value to set.
     * @return the Sku object itself.
     */
    public Sku setTier(String tier) {
        this.tier = tier;
        return this;
    }

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

    /**
     * Set the name property: The SKU name.
     *
     * @param name the name value to set.
     * @return the Sku object itself.
     */
    public Sku setName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If
     * scale out/in is not possible for the resource this may be omitted.
     *
     * @return the capacity value.
     */
    public Integer getCapacity() {
        return this.capacity;
    }

    /**
     * Set the capacity property: If the SKU supports scale out/in then the capacity integer should be included. If
     * scale out/in is not possible for the resource this may be omitted.
     *
     * @param capacity the capacity value to set.
     * @return the Sku object itself.
     */
    public Sku setCapacity(Integer capacity) {
        this.capacity = capacity;
        return this;
    }
}