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

package com.azure.resourcemanager.storagecache.models;

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

/**
 * Information required to get the number of available IP addresses a subnet should have that will be used in AML file
 * system create.
 */
@Fluent
public final class RequiredAmlFilesystemSubnetsSizeInfo {
    /*
     * The size of the AML file system, in TiB.
     */
    @JsonProperty(value = "storageCapacityTiB")
    private Float storageCapacityTiB;

    /*
     * SKU for the resource.
     */
    @JsonProperty(value = "sku")
    private SkuName sku;

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

    /**
     * Get the storageCapacityTiB property: The size of the AML file system, in TiB.
     *
     * @return the storageCapacityTiB value.
     */
    public Float storageCapacityTiB() {
        return this.storageCapacityTiB;
    }

    /**
     * Set the storageCapacityTiB property: The size of the AML file system, in TiB.
     *
     * @param storageCapacityTiB the storageCapacityTiB value to set.
     * @return the RequiredAmlFilesystemSubnetsSizeInfo object itself.
     */
    public RequiredAmlFilesystemSubnetsSizeInfo withStorageCapacityTiB(Float storageCapacityTiB) {
        this.storageCapacityTiB = storageCapacityTiB;
        return this;
    }

    /**
     * Get the sku property: SKU for the resource.
     *
     * @return the sku value.
     */
    public SkuName sku() {
        return this.sku;
    }

    /**
     * Set the sku property: SKU for the resource.
     *
     * @param sku the sku value to set.
     * @return the RequiredAmlFilesystemSubnetsSizeInfo object itself.
     */
    public RequiredAmlFilesystemSubnetsSizeInfo withSku(SkuName sku) {
        this.sku = sku;
        return this;
    }

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