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

com.azure.resourcemanager.automation.models.Variable Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Automation Client. Package tag package-2022-02-22.

The 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.automation.models;

import com.azure.core.util.Context;
import com.azure.resourcemanager.automation.fluent.models.VariableInner;
import java.time.OffsetDateTime;

/**
 * An immutable client-side representation of Variable.
 */
public interface Variable {
    /**
     * 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 value property: Gets or sets the value of the variable.
     * 
     * @return the value value.
     */
    String value();

    /**
     * Gets the isEncrypted property: Gets or sets the encrypted flag of the variable.
     * 
     * @return the isEncrypted value.
     */
    Boolean isEncrypted();

    /**
     * Gets the creationTime property: Gets or sets the creation time.
     * 
     * @return the creationTime value.
     */
    OffsetDateTime creationTime();

    /**
     * Gets the lastModifiedTime property: Gets or sets the last modified time.
     * 
     * @return the lastModifiedTime value.
     */
    OffsetDateTime lastModifiedTime();

    /**
     * Gets the description property: Gets or sets the description.
     * 
     * @return the description value.
     */
    String description();

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

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

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

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

        /**
         * The stage of the Variable definition allowing to specify parent resource.
         */
        interface WithParentResource {
            /**
             * Specifies resourceGroupName, automationAccountName.
             * 
             * @param resourceGroupName Name of an Azure Resource group.
             * @param automationAccountName The name of the automation account.
             * @return the next definition stage.
             */
            WithName withExistingAutomationAccount(String resourceGroupName, String automationAccountName);
        }

        /**
         * The stage of the Variable definition allowing to specify name.
         */
        interface WithName {
            /**
             * Specifies the name property: Gets or sets the name of the variable..
             * 
             * @param name Gets or sets the name of the variable.
             * @return the next definition stage.
             */
            WithCreate withName(String name);
        }

        /**
         * The stage of the Variable 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.WithValue, DefinitionStages.WithDescription, DefinitionStages.WithIsEncrypted {
            /**
             * Executes the create request.
             * 
             * @return the created resource.
             */
            Variable create();

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

        /**
         * The stage of the Variable definition allowing to specify value.
         */
        interface WithValue {
            /**
             * Specifies the value property: Gets or sets the value of the variable..
             * 
             * @param value Gets or sets the value of the variable.
             * @return the next definition stage.
             */
            WithCreate withValue(String value);
        }

        /**
         * The stage of the Variable definition allowing to specify description.
         */
        interface WithDescription {
            /**
             * Specifies the description property: Gets or sets the description of the variable..
             * 
             * @param description Gets or sets the description of the variable.
             * @return the next definition stage.
             */
            WithCreate withDescription(String description);
        }

        /**
         * The stage of the Variable definition allowing to specify isEncrypted.
         */
        interface WithIsEncrypted {
            /**
             * Specifies the isEncrypted property: Gets or sets the encrypted flag of the variable..
             * 
             * @param isEncrypted Gets or sets the encrypted flag of the variable.
             * @return the next definition stage.
             */
            WithCreate withIsEncrypted(Boolean isEncrypted);
        }
    }

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

    /**
     * The template for Variable update.
     */
    interface Update extends UpdateStages.WithName, UpdateStages.WithValue, UpdateStages.WithDescription {
        /**
         * Executes the update request.
         * 
         * @return the updated resource.
         */
        Variable apply();

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

    /**
     * The Variable update stages.
     */
    interface UpdateStages {
        /**
         * The stage of the Variable update allowing to specify name.
         */
        interface WithName {
            /**
             * Specifies the name property: Gets or sets the name of the variable..
             * 
             * @param name Gets or sets the name of the variable.
             * @return the next definition stage.
             */
            Update withName(String name);
        }

        /**
         * The stage of the Variable update allowing to specify value.
         */
        interface WithValue {
            /**
             * Specifies the value property: Gets or sets the value of the variable..
             * 
             * @param value Gets or sets the value of the variable.
             * @return the next definition stage.
             */
            Update withValue(String value);
        }

        /**
         * The stage of the Variable update allowing to specify description.
         */
        interface WithDescription {
            /**
             * Specifies the description property: Gets or sets the description of the variable..
             * 
             * @param description Gets or sets the description of the variable.
             * @return the next definition stage.
             */
            Update withDescription(String description);
        }
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy