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

com.pulumi.azure.machinelearning.ComputeInstanceArgs Maven / Gradle / Ivy

// *** 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.azure.machinelearning;

import com.pulumi.azure.machinelearning.inputs.ComputeInstanceAssignToUserArgs;
import com.pulumi.azure.machinelearning.inputs.ComputeInstanceIdentityArgs;
import com.pulumi.azure.machinelearning.inputs.ComputeInstanceSshArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ComputeInstanceArgs Empty = new ComputeInstanceArgs();

    /**
     * A `assign_to_user` block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="assignToUser")
    private @Nullable Output assignToUser;

    /**
     * @return A `assign_to_user` block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> assignToUser() {
        return Optional.ofNullable(this.assignToUser);
    }

    /**
     * The Compute Instance Authorization type. Possible values include: `personal`. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="authorizationType")
    private @Nullable Output authorizationType;

    /**
     * @return The Compute Instance Authorization type. Possible values include: `personal`. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> authorizationType() {
        return Optional.ofNullable(this.authorizationType);
    }

    /**
     * The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * An `identity` block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="localAuthEnabled")
    private @Nullable Output localAuthEnabled;

    /**
     * @return Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> localAuthEnabled() {
        return Optional.ofNullable(this.localAuthEnabled);
    }

    /**
     * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="machineLearningWorkspaceId", required=true)
    private Output machineLearningWorkspaceId;

    /**
     * @return The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Output machineLearningWorkspaceId() {
        return this.machineLearningWorkspaceId;
    }

    /**
     * The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Whether the compute instance will have a public ip. To set this to false a `subnet_resource_id` needs to be set. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    @Import(name="nodePublicIpEnabled")
    private @Nullable Output nodePublicIpEnabled;

    /**
     * @return Whether the compute instance will have a public ip. To set this to false a `subnet_resource_id` needs to be set. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
     * 
     */
    public Optional> nodePublicIpEnabled() {
        return Optional.ofNullable(this.nodePublicIpEnabled);
    }

    /**
     * A `ssh` block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="ssh")
    private @Nullable Output ssh;

    /**
     * @return A `ssh` block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> ssh() {
        return Optional.ofNullable(this.ssh);
    }

    /**
     * Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="subnetResourceId")
    private @Nullable Output subnetResourceId;

    /**
     * @return Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional> subnetResourceId() {
        return Optional.ofNullable(this.subnetResourceId);
    }

    /**
     * A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    @Import(name="virtualMachineSize", required=true)
    private Output virtualMachineSize;

    /**
     * @return The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
     * 
     */
    public Output virtualMachineSize() {
        return this.virtualMachineSize;
    }

    private ComputeInstanceArgs() {}

    private ComputeInstanceArgs(ComputeInstanceArgs $) {
        this.assignToUser = $.assignToUser;
        this.authorizationType = $.authorizationType;
        this.description = $.description;
        this.identity = $.identity;
        this.localAuthEnabled = $.localAuthEnabled;
        this.machineLearningWorkspaceId = $.machineLearningWorkspaceId;
        this.name = $.name;
        this.nodePublicIpEnabled = $.nodePublicIpEnabled;
        this.ssh = $.ssh;
        this.subnetResourceId = $.subnetResourceId;
        this.tags = $.tags;
        this.virtualMachineSize = $.virtualMachineSize;
    }

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

    public static final class Builder {
        private ComputeInstanceArgs $;

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

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

        /**
         * @param assignToUser A `assign_to_user` block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder assignToUser(@Nullable Output assignToUser) {
            $.assignToUser = assignToUser;
            return this;
        }

        /**
         * @param assignToUser A `assign_to_user` block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder assignToUser(ComputeInstanceAssignToUserArgs assignToUser) {
            return assignToUser(Output.of(assignToUser));
        }

        /**
         * @param authorizationType The Compute Instance Authorization type. Possible values include: `personal`. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder authorizationType(@Nullable Output authorizationType) {
            $.authorizationType = authorizationType;
            return this;
        }

        /**
         * @param authorizationType The Compute Instance Authorization type. Possible values include: `personal`. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder authorizationType(String authorizationType) {
            return authorizationType(Output.of(authorizationType));
        }

        /**
         * @param description The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param identity An `identity` block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder identity(ComputeInstanceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param localAuthEnabled Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder localAuthEnabled(@Nullable Output localAuthEnabled) {
            $.localAuthEnabled = localAuthEnabled;
            return this;
        }

        /**
         * @param localAuthEnabled Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder localAuthEnabled(Boolean localAuthEnabled) {
            return localAuthEnabled(Output.of(localAuthEnabled));
        }

        /**
         * @param machineLearningWorkspaceId The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder machineLearningWorkspaceId(Output machineLearningWorkspaceId) {
            $.machineLearningWorkspaceId = machineLearningWorkspaceId;
            return this;
        }

        /**
         * @param machineLearningWorkspaceId The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder machineLearningWorkspaceId(String machineLearningWorkspaceId) {
            return machineLearningWorkspaceId(Output.of(machineLearningWorkspaceId));
        }

        /**
         * @param name The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nodePublicIpEnabled Whether the compute instance will have a public ip. To set this to false a `subnet_resource_id` needs to be set. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder nodePublicIpEnabled(@Nullable Output nodePublicIpEnabled) {
            $.nodePublicIpEnabled = nodePublicIpEnabled;
            return this;
        }

        /**
         * @param nodePublicIpEnabled Whether the compute instance will have a public ip. To set this to false a `subnet_resource_id` needs to be set. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created.
         * 
         * @return builder
         * 
         */
        public Builder nodePublicIpEnabled(Boolean nodePublicIpEnabled) {
            return nodePublicIpEnabled(Output.of(nodePublicIpEnabled));
        }

        /**
         * @param ssh A `ssh` block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder ssh(@Nullable Output ssh) {
            $.ssh = ssh;
            return this;
        }

        /**
         * @param ssh A `ssh` block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder ssh(ComputeInstanceSshArgs ssh) {
            return ssh(Output.of(ssh));
        }

        /**
         * @param subnetResourceId Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder subnetResourceId(@Nullable Output subnetResourceId) {
            $.subnetResourceId = subnetResourceId;
            return this;
        }

        /**
         * @param subnetResourceId Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder subnetResourceId(String subnetResourceId) {
            return subnetResourceId(Output.of(subnetResourceId));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param virtualMachineSize The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineSize(Output virtualMachineSize) {
            $.virtualMachineSize = virtualMachineSize;
            return this;
        }

        /**
         * @param virtualMachineSize The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualMachineSize(String virtualMachineSize) {
            return virtualMachineSize(Output.of(virtualMachineSize));
        }

        public ComputeInstanceArgs build() {
            if ($.machineLearningWorkspaceId == null) {
                throw new MissingRequiredPropertyException("ComputeInstanceArgs", "machineLearningWorkspaceId");
            }
            if ($.virtualMachineSize == null) {
                throw new MissingRequiredPropertyException("ComputeInstanceArgs", "virtualMachineSize");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy