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

com.pulumi.azurenative.machinelearningservices.WorkspaceArgs Maven / Gradle / Ivy

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.machinelearningservices;

import com.pulumi.azurenative.machinelearningservices.enums.PublicNetworkAccess;
import com.pulumi.azurenative.machinelearningservices.inputs.EncryptionPropertyArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.ServiceManagedResourcesSettingsArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.SharedPrivateLinkResourceArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.SkuArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class WorkspaceArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkspaceArgs Empty = new WorkspaceArgs();

    /**
     * The flag to indicate whether to allow public access when behind VNet.
     * 
     */
    @Import(name="allowPublicAccessWhenBehindVnet")
    private @Nullable Output allowPublicAccessWhenBehindVnet;

    /**
     * @return The flag to indicate whether to allow public access when behind VNet.
     * 
     */
    public Optional> allowPublicAccessWhenBehindVnet() {
        return Optional.ofNullable(this.allowPublicAccessWhenBehindVnet);
    }

    /**
     * ARM id of the application insights associated with this workspace.
     * 
     */
    @Import(name="applicationInsights")
    private @Nullable Output applicationInsights;

    /**
     * @return ARM id of the application insights associated with this workspace.
     * 
     */
    public Optional> applicationInsights() {
        return Optional.ofNullable(this.applicationInsights);
    }

    /**
     * ARM id of the container registry associated with this workspace.
     * 
     */
    @Import(name="containerRegistry")
    private @Nullable Output containerRegistry;

    /**
     * @return ARM id of the container registry associated with this workspace.
     * 
     */
    public Optional> containerRegistry() {
        return Optional.ofNullable(this.containerRegistry);
    }

    /**
     * The description of this workspace.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of this workspace.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Url for the discovery service to identify regional endpoints for machine learning experimentation services
     * 
     */
    @Import(name="discoveryUrl")
    private @Nullable Output discoveryUrl;

    /**
     * @return Url for the discovery service to identify regional endpoints for machine learning experimentation services
     * 
     */
    public Optional> discoveryUrl() {
        return Optional.ofNullable(this.discoveryUrl);
    }

    /**
     * The encryption settings of Azure ML workspace.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return The encryption settings of Azure ML workspace.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * The friendly name for this workspace. This name in mutable
     * 
     */
    @Import(name="friendlyName")
    private @Nullable Output friendlyName;

    /**
     * @return The friendly name for this workspace. This name in mutable
     * 
     */
    public Optional> friendlyName() {
        return Optional.ofNullable(this.friendlyName);
    }

    /**
     * The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
     * 
     */
    @Import(name="hbiWorkspace")
    private @Nullable Output hbiWorkspace;

    /**
     * @return The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
     * 
     */
    public Optional> hbiWorkspace() {
        return Optional.ofNullable(this.hbiWorkspace);
    }

    /**
     * The identity of the resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The identity of the resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The compute name for image build
     * 
     */
    @Import(name="imageBuildCompute")
    private @Nullable Output imageBuildCompute;

    /**
     * @return The compute name for image build
     * 
     */
    public Optional> imageBuildCompute() {
        return Optional.ofNullable(this.imageBuildCompute);
    }

    /**
     * ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
     * 
     */
    @Import(name="keyVault")
    private @Nullable Output keyVault;

    /**
     * @return ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
     * 
     */
    public Optional> keyVault() {
        return Optional.ofNullable(this.keyVault);
    }

    /**
     * Specifies the location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the location of the resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The user assigned identity resource id that represents the workspace identity.
     * 
     */
    @Import(name="primaryUserAssignedIdentity")
    private @Nullable Output primaryUserAssignedIdentity;

    /**
     * @return The user assigned identity resource id that represents the workspace identity.
     * 
     */
    public Optional> primaryUserAssignedIdentity() {
        return Optional.ofNullable(this.primaryUserAssignedIdentity);
    }

    /**
     * Whether requests from Public Network are allowed.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return Whether requests from Public Network are allowed.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The service managed resource settings.
     * 
     */
    @Import(name="serviceManagedResourcesSettings")
    private @Nullable Output serviceManagedResourcesSettings;

    /**
     * @return The service managed resource settings.
     * 
     */
    public Optional> serviceManagedResourcesSettings() {
        return Optional.ofNullable(this.serviceManagedResourcesSettings);
    }

    /**
     * The list of shared private link resources in this workspace.
     * 
     */
    @Import(name="sharedPrivateLinkResources")
    private @Nullable Output> sharedPrivateLinkResources;

    /**
     * @return The list of shared private link resources in this workspace.
     * 
     */
    public Optional>> sharedPrivateLinkResources() {
        return Optional.ofNullable(this.sharedPrivateLinkResources);
    }

    /**
     * The sku of the workspace.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The sku of the workspace.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
     * 
     */
    @Import(name="storageAccount")
    private @Nullable Output storageAccount;

    /**
     * @return ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
     * 
     */
    public Optional> storageAccount() {
        return Optional.ofNullable(this.storageAccount);
    }

    /**
     * Contains resource tags defined as key/value pairs.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Contains resource tags defined as key/value pairs.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
     * 
     */
    @Import(name="v1LegacyMode")
    private @Nullable Output v1LegacyMode;

    /**
     * @return Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
     * 
     */
    public Optional> v1LegacyMode() {
        return Optional.ofNullable(this.v1LegacyMode);
    }

    /**
     * Name of Azure Machine Learning workspace.
     * 
     */
    @Import(name="workspaceName")
    private @Nullable Output workspaceName;

    /**
     * @return Name of Azure Machine Learning workspace.
     * 
     */
    public Optional> workspaceName() {
        return Optional.ofNullable(this.workspaceName);
    }

    private WorkspaceArgs() {}

    private WorkspaceArgs(WorkspaceArgs $) {
        this.allowPublicAccessWhenBehindVnet = $.allowPublicAccessWhenBehindVnet;
        this.applicationInsights = $.applicationInsights;
        this.containerRegistry = $.containerRegistry;
        this.description = $.description;
        this.discoveryUrl = $.discoveryUrl;
        this.encryption = $.encryption;
        this.friendlyName = $.friendlyName;
        this.hbiWorkspace = $.hbiWorkspace;
        this.identity = $.identity;
        this.imageBuildCompute = $.imageBuildCompute;
        this.keyVault = $.keyVault;
        this.location = $.location;
        this.primaryUserAssignedIdentity = $.primaryUserAssignedIdentity;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceManagedResourcesSettings = $.serviceManagedResourcesSettings;
        this.sharedPrivateLinkResources = $.sharedPrivateLinkResources;
        this.sku = $.sku;
        this.storageAccount = $.storageAccount;
        this.tags = $.tags;
        this.v1LegacyMode = $.v1LegacyMode;
        this.workspaceName = $.workspaceName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WorkspaceArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WorkspaceArgs $;

        public Builder() {
            $ = new WorkspaceArgs();
        }

        public Builder(WorkspaceArgs defaults) {
            $ = new WorkspaceArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param allowPublicAccessWhenBehindVnet The flag to indicate whether to allow public access when behind VNet.
         * 
         * @return builder
         * 
         */
        public Builder allowPublicAccessWhenBehindVnet(@Nullable Output allowPublicAccessWhenBehindVnet) {
            $.allowPublicAccessWhenBehindVnet = allowPublicAccessWhenBehindVnet;
            return this;
        }

        /**
         * @param allowPublicAccessWhenBehindVnet The flag to indicate whether to allow public access when behind VNet.
         * 
         * @return builder
         * 
         */
        public Builder allowPublicAccessWhenBehindVnet(Boolean allowPublicAccessWhenBehindVnet) {
            return allowPublicAccessWhenBehindVnet(Output.of(allowPublicAccessWhenBehindVnet));
        }

        /**
         * @param applicationInsights ARM id of the application insights associated with this workspace.
         * 
         * @return builder
         * 
         */
        public Builder applicationInsights(@Nullable Output applicationInsights) {
            $.applicationInsights = applicationInsights;
            return this;
        }

        /**
         * @param applicationInsights ARM id of the application insights associated with this workspace.
         * 
         * @return builder
         * 
         */
        public Builder applicationInsights(String applicationInsights) {
            return applicationInsights(Output.of(applicationInsights));
        }

        /**
         * @param containerRegistry ARM id of the container registry associated with this workspace.
         * 
         * @return builder
         * 
         */
        public Builder containerRegistry(@Nullable Output containerRegistry) {
            $.containerRegistry = containerRegistry;
            return this;
        }

        /**
         * @param containerRegistry ARM id of the container registry associated with this workspace.
         * 
         * @return builder
         * 
         */
        public Builder containerRegistry(String containerRegistry) {
            return containerRegistry(Output.of(containerRegistry));
        }

        /**
         * @param description The description of this workspace.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of this workspace.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param discoveryUrl Url for the discovery service to identify regional endpoints for machine learning experimentation services
         * 
         * @return builder
         * 
         */
        public Builder discoveryUrl(@Nullable Output discoveryUrl) {
            $.discoveryUrl = discoveryUrl;
            return this;
        }

        /**
         * @param discoveryUrl Url for the discovery service to identify regional endpoints for machine learning experimentation services
         * 
         * @return builder
         * 
         */
        public Builder discoveryUrl(String discoveryUrl) {
            return discoveryUrl(Output.of(discoveryUrl));
        }

        /**
         * @param encryption The encryption settings of Azure ML workspace.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption The encryption settings of Azure ML workspace.
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionPropertyArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param friendlyName The friendly name for this workspace. This name in mutable
         * 
         * @return builder
         * 
         */
        public Builder friendlyName(@Nullable Output friendlyName) {
            $.friendlyName = friendlyName;
            return this;
        }

        /**
         * @param friendlyName The friendly name for this workspace. This name in mutable
         * 
         * @return builder
         * 
         */
        public Builder friendlyName(String friendlyName) {
            return friendlyName(Output.of(friendlyName));
        }

        /**
         * @param hbiWorkspace The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
         * 
         * @return builder
         * 
         */
        public Builder hbiWorkspace(@Nullable Output hbiWorkspace) {
            $.hbiWorkspace = hbiWorkspace;
            return this;
        }

        /**
         * @param hbiWorkspace The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
         * 
         * @return builder
         * 
         */
        public Builder hbiWorkspace(Boolean hbiWorkspace) {
            return hbiWorkspace(Output.of(hbiWorkspace));
        }

        /**
         * @param identity The identity of the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The identity of the resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param imageBuildCompute The compute name for image build
         * 
         * @return builder
         * 
         */
        public Builder imageBuildCompute(@Nullable Output imageBuildCompute) {
            $.imageBuildCompute = imageBuildCompute;
            return this;
        }

        /**
         * @param imageBuildCompute The compute name for image build
         * 
         * @return builder
         * 
         */
        public Builder imageBuildCompute(String imageBuildCompute) {
            return imageBuildCompute(Output.of(imageBuildCompute));
        }

        /**
         * @param keyVault ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
         * 
         * @return builder
         * 
         */
        public Builder keyVault(@Nullable Output keyVault) {
            $.keyVault = keyVault;
            return this;
        }

        /**
         * @param keyVault ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created
         * 
         * @return builder
         * 
         */
        public Builder keyVault(String keyVault) {
            return keyVault(Output.of(keyVault));
        }

        /**
         * @param location Specifies the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param primaryUserAssignedIdentity The user assigned identity resource id that represents the workspace identity.
         * 
         * @return builder
         * 
         */
        public Builder primaryUserAssignedIdentity(@Nullable Output primaryUserAssignedIdentity) {
            $.primaryUserAssignedIdentity = primaryUserAssignedIdentity;
            return this;
        }

        /**
         * @param primaryUserAssignedIdentity The user assigned identity resource id that represents the workspace identity.
         * 
         * @return builder
         * 
         */
        public Builder primaryUserAssignedIdentity(String primaryUserAssignedIdentity) {
            return primaryUserAssignedIdentity(Output.of(primaryUserAssignedIdentity));
        }

        /**
         * @param publicNetworkAccess Whether requests from Public Network are allowed.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Whether requests from Public Network are allowed.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether requests from Public Network are allowed.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether requests from Public Network are allowed.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serviceManagedResourcesSettings The service managed resource settings.
         * 
         * @return builder
         * 
         */
        public Builder serviceManagedResourcesSettings(@Nullable Output serviceManagedResourcesSettings) {
            $.serviceManagedResourcesSettings = serviceManagedResourcesSettings;
            return this;
        }

        /**
         * @param serviceManagedResourcesSettings The service managed resource settings.
         * 
         * @return builder
         * 
         */
        public Builder serviceManagedResourcesSettings(ServiceManagedResourcesSettingsArgs serviceManagedResourcesSettings) {
            return serviceManagedResourcesSettings(Output.of(serviceManagedResourcesSettings));
        }

        /**
         * @param sharedPrivateLinkResources The list of shared private link resources in this workspace.
         * 
         * @return builder
         * 
         */
        public Builder sharedPrivateLinkResources(@Nullable Output> sharedPrivateLinkResources) {
            $.sharedPrivateLinkResources = sharedPrivateLinkResources;
            return this;
        }

        /**
         * @param sharedPrivateLinkResources The list of shared private link resources in this workspace.
         * 
         * @return builder
         * 
         */
        public Builder sharedPrivateLinkResources(List sharedPrivateLinkResources) {
            return sharedPrivateLinkResources(Output.of(sharedPrivateLinkResources));
        }

        /**
         * @param sharedPrivateLinkResources The list of shared private link resources in this workspace.
         * 
         * @return builder
         * 
         */
        public Builder sharedPrivateLinkResources(SharedPrivateLinkResourceArgs... sharedPrivateLinkResources) {
            return sharedPrivateLinkResources(List.of(sharedPrivateLinkResources));
        }

        /**
         * @param sku The sku of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The sku of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param storageAccount ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
         * 
         * @return builder
         * 
         */
        public Builder storageAccount(@Nullable Output storageAccount) {
            $.storageAccount = storageAccount;
            return this;
        }

        /**
         * @param storageAccount ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
         * 
         * @return builder
         * 
         */
        public Builder storageAccount(String storageAccount) {
            return storageAccount(Output.of(storageAccount));
        }

        /**
         * @param tags Contains resource tags defined as key/value pairs.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Contains resource tags defined as key/value pairs.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param v1LegacyMode Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
         * 
         * @return builder
         * 
         */
        public Builder v1LegacyMode(@Nullable Output v1LegacyMode) {
            $.v1LegacyMode = v1LegacyMode;
            return this;
        }

        /**
         * @param v1LegacyMode Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
         * 
         * @return builder
         * 
         */
        public Builder v1LegacyMode(Boolean v1LegacyMode) {
            return v1LegacyMode(Output.of(v1LegacyMode));
        }

        /**
         * @param workspaceName Name of Azure Machine Learning workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(@Nullable Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName Name of Azure Machine Learning workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public WorkspaceArgs build() {
            $.allowPublicAccessWhenBehindVnet = Codegen.booleanProp("allowPublicAccessWhenBehindVnet").output().arg($.allowPublicAccessWhenBehindVnet).def(false).getNullable();
            $.hbiWorkspace = Codegen.booleanProp("hbiWorkspace").output().arg($.hbiWorkspace).def(false).getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkspaceArgs", "resourceGroupName");
            }
            $.v1LegacyMode = Codegen.booleanProp("v1LegacyMode").output().arg($.v1LegacyMode).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy