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

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

There is a newer version: 2.82.0
Show 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.inputs.AKSArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.AmlComputeArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.ComputeInstanceArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.DataFactoryArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.DataLakeAnalyticsArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.DatabricksArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.HDInsightArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.KubernetesArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.SkuArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.SynapseSparkArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.VirtualMachineArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ComputeArgs Empty = new ComputeArgs();

    /**
     * Name of the Azure Machine Learning compute.
     * 
     */
    @Import(name="computeName")
    private @Nullable Output computeName;

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

    /**
     * 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);
    }

    /**
     * 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);
    }

    /**
     * Compute properties
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Compute properties
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * 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 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);
    }

    /**
     * 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);
    }

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

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

    private ComputeArgs() {}

    private ComputeArgs(ComputeArgs $) {
        this.computeName = $.computeName;
        this.identity = $.identity;
        this.location = $.location;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private ComputeArgs $;

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

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

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

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

        /**
         * @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 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 properties Compute properties
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Compute properties
         * 
         * @return builder
         * 
         */
        public Builder properties(Object properties) {
            return properties(Output.of(properties));
        }

        /**
         * @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 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 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 workspaceName Name of Azure Machine Learning workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(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 ComputeArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ComputeArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("ComputeArgs", "workspaceName");
            }
            return $;
        }
    }

}