All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.netapp.models.CapacityPool Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-2024-03.

There is a newer version: 1.4.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.netapp.models;

import com.azure.core.management.Region;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner;
import java.util.Map;

/**
 * An immutable client-side representation of CapacityPool.
 */
public interface CapacityPool {
    /**
     * Gets the id property: Fully qualified resource Id for the resource.
     * 
     * @return the id value.
     */
    String id();

    /**
     * Gets the name property: The name of the resource.
     * 
     * @return the name value.
     */
    String name();

    /**
     * Gets the type property: The type of the resource.
     * 
     * @return the type value.
     */
    String type();

    /**
     * Gets the location property: The geo-location where the resource lives.
     * 
     * @return the location value.
     */
    String location();

    /**
     * Gets the tags property: Resource tags.
     * 
     * @return the tags value.
     */
    Map tags();

    /**
     * Gets the etag property: A unique read-only string that changes whenever the resource is updated.
     * 
     * @return the etag value.
     */
    String etag();

    /**
     * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the poolId property: UUID v4 used to identify the Pool.
     * 
     * @return the poolId value.
     */
    String poolId();

    /**
     * Gets the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
     * multiple of 1099511627776).
     * 
     * @return the size value.
     */
    long size();

    /**
     * Gets the serviceLevel property: The service level of the file system.
     * 
     * @return the serviceLevel value.
     */
    ServiceLevel serviceLevel();

    /**
     * Gets the provisioningState property: Azure lifecycle management.
     * 
     * @return the provisioningState value.
     */
    String provisioningState();

    /**
     * Gets the totalThroughputMibps property: Total throughput of pool in MiB/s.
     * 
     * @return the totalThroughputMibps value.
     */
    Float totalThroughputMibps();

    /**
     * Gets the utilizedThroughputMibps property: Utilized throughput of pool in MiB/s.
     * 
     * @return the utilizedThroughputMibps value.
     */
    Float utilizedThroughputMibps();

    /**
     * Gets the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this pool and this
     * will be accepted as input only for manual qosType pool with Flexible service level.
     * 
     * @return the customThroughputMibps value.
     */
    Float customThroughputMibps();

    /**
     * Gets the qosType property: The qos type of the pool.
     * 
     * @return the qosType value.
     */
    QosType qosType();

    /**
     * Gets the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes.
     * 
     * @return the coolAccess value.
     */
    Boolean coolAccess();

    /**
     * Gets the encryptionType property: Encryption type of the capacity pool, set encryption type for data at rest for
     * this pool and all volumes in it. This value can only be set when creating new pool.
     * 
     * @return the encryptionType value.
     */
    EncryptionType encryptionType();

    /**
     * Gets the region of the resource.
     * 
     * @return the region of the resource.
     */
    Region region();

    /**
     * Gets the name of the resource region.
     * 
     * @return the name of the resource region.
     */
    String regionName();

    /**
     * Gets the name of the resource group.
     * 
     * @return the name of the resource group.
     */
    String resourceGroupName();

    /**
     * Gets the inner com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner object.
     * 
     * @return the inner object.
     */
    CapacityPoolInner innerModel();

    /**
     * The entirety of the CapacityPool definition.
     */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithParentResource,
        DefinitionStages.WithSize, DefinitionStages.WithServiceLevel, DefinitionStages.WithCreate {
    }

    /**
     * The CapacityPool definition stages.
     */
    interface DefinitionStages {
        /**
         * The first stage of the CapacityPool definition.
         */
        interface Blank extends WithLocation {
        }

        /**
         * The stage of the CapacityPool definition allowing to specify location.
         */
        interface WithLocation {
            /**
             * Specifies the region for the resource.
             * 
             * @param location The geo-location where the resource lives.
             * @return the next definition stage.
             */
            WithParentResource withRegion(Region location);

            /**
             * Specifies the region for the resource.
             * 
             * @param location The geo-location where the resource lives.
             * @return the next definition stage.
             */
            WithParentResource withRegion(String location);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify parent resource.
         */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, accountName.
             * 
             * @param resourceGroupName The name of the resource group. The name is case insensitive.
             * @param accountName The name of the NetApp account.
             * @return the next definition stage.
             */
            WithSize withExistingNetAppAccount(String resourceGroupName, String accountName);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify size.
         */
        interface WithSize {
            /**
             * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
             * (value must be multiple of 1099511627776)..
             * 
             * @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
             * multiple of 1099511627776).
             * @return the next definition stage.
             */
            WithServiceLevel withSize(long size);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify serviceLevel.
         */
        interface WithServiceLevel {
            /**
             * Specifies the serviceLevel property: The service level of the file system.
             * 
             * @param serviceLevel The service level of the file system.
             * @return the next definition stage.
             */
            WithCreate withServiceLevel(ServiceLevel serviceLevel);
        }

        /**
         * The stage of the CapacityPool definition which contains all the minimum required properties for the resource
         * to be created, but also allows for any other optional properties to be specified.
         */
        interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithCustomThroughputMibps,
            DefinitionStages.WithQosType, DefinitionStages.WithCoolAccess, DefinitionStages.WithEncryptionType {
            /**
             * Executes the create request.
             * 
             * @return the created resource.
             */
            CapacityPool create();

            /**
             * Executes the create request.
             * 
             * @param context The context to associate with this operation.
             * @return the created resource.
             */
            CapacityPool create(Context context);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify tags.
         */
        interface WithTags {
            /**
             * Specifies the tags property: Resource tags..
             * 
             * @param tags Resource tags.
             * @return the next definition stage.
             */
            WithCreate withTags(Map tags);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify customThroughputMibps.
         */
        interface WithCustomThroughputMibps {
            /**
             * Specifies the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this
             * pool and this will be accepted as input only for manual qosType pool with Flexible service level.
             * 
             * @param customThroughputMibps Maximum throughput in MiB/s that can be achieved by this pool and this will
             * be accepted as input only for manual qosType pool with Flexible service level.
             * @return the next definition stage.
             */
            WithCreate withCustomThroughputMibps(Float customThroughputMibps);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify qosType.
         */
        interface WithQosType {
            /**
             * Specifies the qosType property: The qos type of the pool.
             * 
             * @param qosType The qos type of the pool.
             * @return the next definition stage.
             */
            WithCreate withQosType(QosType qosType);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify coolAccess.
         */
        interface WithCoolAccess {
            /**
             * Specifies the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes..
             * 
             * @param coolAccess If enabled (true) the pool can contain cool Access enabled volumes.
             * @return the next definition stage.
             */
            WithCreate withCoolAccess(Boolean coolAccess);
        }

        /**
         * The stage of the CapacityPool definition allowing to specify encryptionType.
         */
        interface WithEncryptionType {
            /**
             * Specifies the encryptionType property: Encryption type of the capacity pool, set encryption type for data
             * at rest for this pool and all volumes in it. This value can only be set when creating new pool..
             * 
             * @param encryptionType Encryption type of the capacity pool, set encryption type for data at rest for this
             * pool and all volumes in it. This value can only be set when creating new pool.
             * @return the next definition stage.
             */
            WithCreate withEncryptionType(EncryptionType encryptionType);
        }
    }

    /**
     * Begins update for the CapacityPool resource.
     * 
     * @return the stage of resource update.
     */
    CapacityPool.Update update();

    /**
     * The template for CapacityPool update.
     */
    interface Update extends UpdateStages.WithTags, UpdateStages.WithSize, UpdateStages.WithQosType,
        UpdateStages.WithCoolAccess, UpdateStages.WithCustomThroughputMibps {
        /**
         * Executes the update request.
         * 
         * @return the updated resource.
         */
        CapacityPool apply();

        /**
         * Executes the update request.
         * 
         * @param context The context to associate with this operation.
         * @return the updated resource.
         */
        CapacityPool apply(Context context);
    }

    /**
     * The CapacityPool update stages.
     */
    interface UpdateStages {
        /**
         * The stage of the CapacityPool update allowing to specify tags.
         */
        interface WithTags {
            /**
             * Specifies the tags property: Resource tags..
             * 
             * @param tags Resource tags.
             * @return the next definition stage.
             */
            Update withTags(Map tags);
        }

        /**
         * The stage of the CapacityPool update allowing to specify size.
         */
        interface WithSize {
            /**
             * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks
             * (value must be multiple of 1099511627776)..
             * 
             * @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be
             * multiple of 1099511627776).
             * @return the next definition stage.
             */
            Update withSize(Long size);
        }

        /**
         * The stage of the CapacityPool update allowing to specify qosType.
         */
        interface WithQosType {
            /**
             * Specifies the qosType property: The qos type of the pool.
             * 
             * @param qosType The qos type of the pool.
             * @return the next definition stage.
             */
            Update withQosType(QosType qosType);
        }

        /**
         * The stage of the CapacityPool update allowing to specify coolAccess.
         */
        interface WithCoolAccess {
            /**
             * Specifies the coolAccess property: If enabled (true) the pool can contain cool Access enabled volumes..
             * 
             * @param coolAccess If enabled (true) the pool can contain cool Access enabled volumes.
             * @return the next definition stage.
             */
            Update withCoolAccess(Boolean coolAccess);
        }

        /**
         * The stage of the CapacityPool update allowing to specify customThroughputMibps.
         */
        interface WithCustomThroughputMibps {
            /**
             * Specifies the customThroughputMibps property: Maximum throughput in MiB/s that can be achieved by this
             * pool and this will be accepted as input only for manual qosType pool with Flexible service level.
             * 
             * @param customThroughputMibps Maximum throughput in MiB/s that can be achieved by this pool and this will
             * be accepted as input only for manual qosType pool with Flexible service level.
             * @return the next definition stage.
             */
            Update withCustomThroughputMibps(Float customThroughputMibps);
        }
    }

    /**
     * Refreshes the resource to sync with Azure.
     * 
     * @return the refreshed resource.
     */
    CapacityPool refresh();

    /**
     * Refreshes the resource to sync with Azure.
     * 
     * @param context The context to associate with this operation.
     * @return the refreshed resource.
     */
    CapacityPool refresh(Context context);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy