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

com.azure.resourcemanager.avs.models.Datastore Maven / Gradle / Ivy

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

package com.azure.resourcemanager.avs.models;

import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.avs.fluent.models.DatastoreInner;

/**
 * An immutable client-side representation of Datastore.
 */
public interface Datastore {
    /**
     * 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 systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the provisioningState property: The state of the datastore provisioning.
     * 
     * @return the provisioningState value.
     */
    DatastoreProvisioningState provisioningState();

    /**
     * Gets the netAppVolume property: An Azure NetApp Files volume.
     * 
     * @return the netAppVolume value.
     */
    NetAppVolume netAppVolume();

    /**
     * Gets the diskPoolVolume property: An iSCSI volume.
     * 
     * @return the diskPoolVolume value.
     */
    DiskPoolVolume diskPoolVolume();

    /**
     * Gets the elasticSanVolume property: An Elastic SAN volume.
     * 
     * @return the elasticSanVolume value.
     */
    ElasticSanVolume elasticSanVolume();

    /**
     * Gets the status property: The operational status of the datastore.
     * 
     * @return the status value.
     */
    DatastoreStatus status();

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

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

    /**
     * The entirety of the Datastore definition.
     */
    interface Definition
        extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate {
    }

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

        /**
         * The stage of the Datastore definition allowing to specify parent resource.
         */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, privateCloudName, clusterName.
             * 
             * @param resourceGroupName The name of the resource group. The name is case insensitive.
             * @param privateCloudName Name of the private cloud.
             * @param clusterName Name of the cluster.
             * @return the next definition stage.
             */
            WithCreate withExistingCluster(String resourceGroupName, String privateCloudName, String clusterName);
        }

        /**
         * The stage of the Datastore 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.WithNetAppVolume, DefinitionStages.WithDiskPoolVolume,
            DefinitionStages.WithElasticSanVolume {
            /**
             * Executes the create request.
             * 
             * @return the created resource.
             */
            Datastore create();

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

        /**
         * The stage of the Datastore definition allowing to specify netAppVolume.
         */
        interface WithNetAppVolume {
            /**
             * Specifies the netAppVolume property: An Azure NetApp Files volume.
             * 
             * @param netAppVolume An Azure NetApp Files volume.
             * @return the next definition stage.
             */
            WithCreate withNetAppVolume(NetAppVolume netAppVolume);
        }

        /**
         * The stage of the Datastore definition allowing to specify diskPoolVolume.
         */
        interface WithDiskPoolVolume {
            /**
             * Specifies the diskPoolVolume property: An iSCSI volume.
             * 
             * @param diskPoolVolume An iSCSI volume.
             * @return the next definition stage.
             */
            WithCreate withDiskPoolVolume(DiskPoolVolume diskPoolVolume);
        }

        /**
         * The stage of the Datastore definition allowing to specify elasticSanVolume.
         */
        interface WithElasticSanVolume {
            /**
             * Specifies the elasticSanVolume property: An Elastic SAN volume.
             * 
             * @param elasticSanVolume An Elastic SAN volume.
             * @return the next definition stage.
             */
            WithCreate withElasticSanVolume(ElasticSanVolume elasticSanVolume);
        }
    }

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

    /**
     * The template for Datastore update.
     */
    interface Update
        extends UpdateStages.WithNetAppVolume, UpdateStages.WithDiskPoolVolume, UpdateStages.WithElasticSanVolume {
        /**
         * Executes the update request.
         * 
         * @return the updated resource.
         */
        Datastore apply();

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

    /**
     * The Datastore update stages.
     */
    interface UpdateStages {
        /**
         * The stage of the Datastore update allowing to specify netAppVolume.
         */
        interface WithNetAppVolume {
            /**
             * Specifies the netAppVolume property: An Azure NetApp Files volume.
             * 
             * @param netAppVolume An Azure NetApp Files volume.
             * @return the next definition stage.
             */
            Update withNetAppVolume(NetAppVolume netAppVolume);
        }

        /**
         * The stage of the Datastore update allowing to specify diskPoolVolume.
         */
        interface WithDiskPoolVolume {
            /**
             * Specifies the diskPoolVolume property: An iSCSI volume.
             * 
             * @param diskPoolVolume An iSCSI volume.
             * @return the next definition stage.
             */
            Update withDiskPoolVolume(DiskPoolVolume diskPoolVolume);
        }

        /**
         * The stage of the Datastore update allowing to specify elasticSanVolume.
         */
        interface WithElasticSanVolume {
            /**
             * Specifies the elasticSanVolume property: An Elastic SAN volume.
             * 
             * @param elasticSanVolume An Elastic SAN volume.
             * @return the next definition stage.
             */
            Update withElasticSanVolume(ElasticSanVolume elasticSanVolume);
        }
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy