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

com.azure.resourcemanager.automation.models.AutomationAccount 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.management.Region;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.automation.fluent.models.AutomationAccountInner;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;

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

    /**
     * Gets the identity property: Identity for the resource.
     * 
     * @return the identity value.
     */
    Identity identity();

    /**
     * Gets the systemData property: Resource system metadata.
     * 
     * @return the systemData value.
     */
    SystemData systemData();

    /**
     * Gets the sku property: Gets or sets the SKU of account.
     * 
     * @return the sku value.
     */
    Sku sku();

    /**
     * Gets the lastModifiedBy property: Gets or sets the last modified by.
     * 
     * @return the lastModifiedBy value.
     */
    String lastModifiedBy();

    /**
     * Gets the state property: Gets status of account.
     * 
     * @return the state value.
     */
    AutomationAccountState state();

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

    /**
     * Gets the lastModifiedTime property: Gets 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 encryption property: Encryption properties for the automation account.
     * 
     * @return the encryption value.
     */
    EncryptionProperties encryption();

    /**
     * Gets the privateEndpointConnections property: List of Automation operations supported by the Automation resource
     * provider.
     * 
     * @return the privateEndpointConnections value.
     */
    List privateEndpointConnections();

    /**
     * Gets the publicNetworkAccess property: Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is
     * allowed from the public internet.
     * 
     * @return the publicNetworkAccess value.
     */
    Boolean publicNetworkAccess();

    /**
     * Gets the disableLocalAuth property: Indicates whether requests using non-AAD authentication are blocked.
     * 
     * @return the disableLocalAuth value.
     */
    Boolean disableLocalAuth();

    /**
     * Gets the automationHybridServiceUrl property: URL of automation hybrid service which is used for hybrid worker
     * on-boarding.
     * 
     * @return the automationHybridServiceUrl value.
     */
    String automationHybridServiceUrl();

    /**
     * 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.automation.fluent.models.AutomationAccountInner object.
     * 
     * @return the inner object.
     */
    AutomationAccountInner innerModel();

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

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

        /**
         * The stage of the AutomationAccount definition allowing to specify parent resource.
         */
        interface WithResourceGroup {
            /**
             * Specifies resourceGroupName.
             * 
             * @param resourceGroupName Name of an Azure Resource group.
             * @return the next definition stage.
             */
            WithCreate withExistingResourceGroup(String resourceGroupName);
        }

        /**
         * The stage of the AutomationAccount 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.WithLocation, DefinitionStages.WithTags, DefinitionStages.WithName,
            DefinitionStages.WithIdentity, DefinitionStages.WithSku, DefinitionStages.WithEncryption,
            DefinitionStages.WithPublicNetworkAccess, DefinitionStages.WithDisableLocalAuth {
            /**
             * Executes the create request.
             * 
             * @return the created resource.
             */
            AutomationAccount create();

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

        /**
         * The stage of the AutomationAccount definition allowing to specify location.
         */
        interface WithLocation {
            /**
             * Specifies the region for the resource.
             * 
             * @param location Gets or sets the location of the resource.
             * @return the next definition stage.
             */
            WithCreate withRegion(Region location);

            /**
             * Specifies the region for the resource.
             * 
             * @param location Gets or sets the location of the resource.
             * @return the next definition stage.
             */
            WithCreate withRegion(String location);
        }

        /**
         * The stage of the AutomationAccount definition allowing to specify tags.
         */
        interface WithTags {
            /**
             * Specifies the tags property: Gets or sets the tags attached to the resource..
             * 
             * @param tags Gets or sets the tags attached to the resource.
             * @return the next definition stage.
             */
            WithCreate withTags(Map tags);
        }

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

        /**
         * The stage of the AutomationAccount definition allowing to specify identity.
         */
        interface WithIdentity {
            /**
             * Specifies the identity property: Sets the identity property for automation account.
             * 
             * @param identity Sets the identity property for automation account.
             * @return the next definition stage.
             */
            WithCreate withIdentity(Identity identity);
        }

        /**
         * The stage of the AutomationAccount definition allowing to specify sku.
         */
        interface WithSku {
            /**
             * Specifies the sku property: Gets or sets account SKU..
             * 
             * @param sku Gets or sets account SKU.
             * @return the next definition stage.
             */
            WithCreate withSku(Sku sku);
        }

        /**
         * The stage of the AutomationAccount definition allowing to specify encryption.
         */
        interface WithEncryption {
            /**
             * Specifies the encryption property: Set the encryption properties for the automation account.
             * 
             * @param encryption Set the encryption properties for the automation account.
             * @return the next definition stage.
             */
            WithCreate withEncryption(EncryptionProperties encryption);
        }

        /**
         * The stage of the AutomationAccount definition allowing to specify publicNetworkAccess.
         */
        interface WithPublicNetworkAccess {
            /**
             * Specifies the publicNetworkAccess property: Indicates whether traffic on the non-ARM endpoint
             * (Webhook/Agent) is allowed from the public internet.
             * 
             * @param publicNetworkAccess Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed
             * from the public internet.
             * @return the next definition stage.
             */
            WithCreate withPublicNetworkAccess(Boolean publicNetworkAccess);
        }

        /**
         * The stage of the AutomationAccount definition allowing to specify disableLocalAuth.
         */
        interface WithDisableLocalAuth {
            /**
             * Specifies the disableLocalAuth property: Indicates whether requests using non-AAD authentication are
             * blocked.
             * 
             * @param disableLocalAuth Indicates whether requests using non-AAD authentication are blocked.
             * @return the next definition stage.
             */
            WithCreate withDisableLocalAuth(Boolean disableLocalAuth);
        }
    }

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

    /**
     * The template for AutomationAccount update.
     */
    interface Update
        extends UpdateStages.WithTags, UpdateStages.WithName, UpdateStages.WithIdentity, UpdateStages.WithSku,
        UpdateStages.WithEncryption, UpdateStages.WithPublicNetworkAccess, UpdateStages.WithDisableLocalAuth {
        /**
         * Executes the update request.
         * 
         * @return the updated resource.
         */
        AutomationAccount apply();

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

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

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

        /**
         * The stage of the AutomationAccount update allowing to specify identity.
         */
        interface WithIdentity {
            /**
             * Specifies the identity property: Sets the identity property for automation account.
             * 
             * @param identity Sets the identity property for automation account.
             * @return the next definition stage.
             */
            Update withIdentity(Identity identity);
        }

        /**
         * The stage of the AutomationAccount update allowing to specify sku.
         */
        interface WithSku {
            /**
             * Specifies the sku property: Gets or sets account SKU..
             * 
             * @param sku Gets or sets account SKU.
             * @return the next definition stage.
             */
            Update withSku(Sku sku);
        }

        /**
         * The stage of the AutomationAccount update allowing to specify encryption.
         */
        interface WithEncryption {
            /**
             * Specifies the encryption property: Set the encryption properties for the automation account.
             * 
             * @param encryption Set the encryption properties for the automation account.
             * @return the next definition stage.
             */
            Update withEncryption(EncryptionProperties encryption);
        }

        /**
         * The stage of the AutomationAccount update allowing to specify publicNetworkAccess.
         */
        interface WithPublicNetworkAccess {
            /**
             * Specifies the publicNetworkAccess property: Indicates whether traffic on the non-ARM endpoint
             * (Webhook/Agent) is allowed from the public internet.
             * 
             * @param publicNetworkAccess Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed
             * from the public internet.
             * @return the next definition stage.
             */
            Update withPublicNetworkAccess(Boolean publicNetworkAccess);
        }

        /**
         * The stage of the AutomationAccount update allowing to specify disableLocalAuth.
         */
        interface WithDisableLocalAuth {
            /**
             * Specifies the disableLocalAuth property: Indicates whether requests using non-AAD authentication are
             * blocked.
             * 
             * @param disableLocalAuth Indicates whether requests using non-AAD authentication are blocked.
             * @return the next definition stage.
             */
            Update withDisableLocalAuth(Boolean disableLocalAuth);
        }
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy