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

package com.azure.resourcemanager.azurearcdata.models;

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

/** The resource model definition representing SKU for Azure Managed Instance - Azure Arc. */
@Fluent
public final class SqlManagedInstanceSku {
    /*
     * The name of the SKU.
     */
    @JsonProperty(value = "name", required = true)
    private String name = "vCore";

    /*
     * The pricing tier for the instance.
     */
    @JsonProperty(value = "tier")
    private SqlManagedInstanceSkuTier tier;

    /*
     * Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.
     */
    @JsonProperty(value = "dev")
    private Boolean dev;

    /*
     * The SKU size. When the name field is the combination of tier and some other value, this would be the standalone
     * code.
     */
    @JsonProperty(value = "size")
    private String size;

    /*
     * The family property.
     */
    @JsonProperty(value = "family")
    private String family;

    /*
     * The capacity property.
     */
    @JsonProperty(value = "capacity")
    private Integer capacity;

    /** Creates an instance of SqlManagedInstanceSku class. */
    public SqlManagedInstanceSku() {
        name = "vCore";
    }

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

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

    /**
     * Get the tier property: The pricing tier for the instance.
     *
     * @return the tier value.
     */
    public SqlManagedInstanceSkuTier tier() {
        return this.tier;
    }

    /**
     * Set the tier property: The pricing tier for the instance.
     *
     * @param tier the tier value to set.
     * @return the SqlManagedInstanceSku object itself.
     */
    public SqlManagedInstanceSku withTier(SqlManagedInstanceSkuTier tier) {
        this.tier = tier;
        return this;
    }

    /**
     * Get the dev property: Whether dev/test is enabled. When the dev field is set to true, the resource is used for
     * dev/test purpose.
     *
     * @return the dev value.
     */
    public Boolean dev() {
        return this.dev;
    }

    /**
     * Set the dev property: Whether dev/test is enabled. When the dev field is set to true, the resource is used for
     * dev/test purpose.
     *
     * @param dev the dev value to set.
     * @return the SqlManagedInstanceSku object itself.
     */
    public SqlManagedInstanceSku withDev(Boolean dev) {
        this.dev = dev;
        return this;
    }

    /**
     * Get the size property: The SKU size. When the name field is the combination of tier and some other value, this
     * would be the standalone code.
     *
     * @return the size value.
     */
    public String size() {
        return this.size;
    }

    /**
     * Set the size property: The SKU size. When the name field is the combination of tier and some other value, this
     * would be the standalone code.
     *
     * @param size the size value to set.
     * @return the SqlManagedInstanceSku object itself.
     */
    public SqlManagedInstanceSku withSize(String size) {
        this.size = size;
        return this;
    }

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

    /**
     * Set the family property: The family property.
     *
     * @param family the family value to set.
     * @return the SqlManagedInstanceSku object itself.
     */
    public SqlManagedInstanceSku withFamily(String family) {
        this.family = family;
        return this;
    }

    /**
     * Get the capacity property: The capacity property.
     *
     * @return the capacity value.
     */
    public Integer capacity() {
        return this.capacity;
    }

    /**
     * Set the capacity property: The capacity property.
     *
     * @param capacity the capacity value to set.
     * @return the SqlManagedInstanceSku object itself.
     */
    public SqlManagedInstanceSku withCapacity(Integer capacity) {
        this.capacity = capacity;
        return this;
    }

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