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

com.pulumi.azurenative.machinelearningservices.ConnectionDeploymentArgs 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.azurenative.machinelearningservices;

import com.pulumi.azurenative.machinelearningservices.inputs.CognitiveServicesSkuArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.EndpointDeploymentResourcePropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConnectionDeploymentArgs Empty = new ConnectionDeploymentArgs();

    /**
     * Friendly name of the workspace connection
     * 
     */
    @Import(name="connectionName", required=true)
    private Output connectionName;

    /**
     * @return Friendly name of the workspace connection
     * 
     */
    public Output connectionName() {
        return this.connectionName;
    }

    /**
     * Name of the deployment resource
     * 
     */
    @Import(name="deploymentName")
    private @Nullable Output deploymentName;

    /**
     * @return Name of the deployment resource
     * 
     */
    public Optional> deploymentName() {
        return Optional.ofNullable(this.deploymentName);
    }

    @Import(name="properties", required=true)
    private Output properties;

    public Output properties() {
        return 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;
    }

    @Import(name="sku")
    private @Nullable Output sku;

    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

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

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

    private ConnectionDeploymentArgs() {}

    private ConnectionDeploymentArgs(ConnectionDeploymentArgs $) {
        this.connectionName = $.connectionName;
        this.deploymentName = $.deploymentName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private ConnectionDeploymentArgs $;

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

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

        /**
         * @param connectionName Friendly name of the workspace connection
         * 
         * @return builder
         * 
         */
        public Builder connectionName(Output connectionName) {
            $.connectionName = connectionName;
            return this;
        }

        /**
         * @param connectionName Friendly name of the workspace connection
         * 
         * @return builder
         * 
         */
        public Builder connectionName(String connectionName) {
            return connectionName(Output.of(connectionName));
        }

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

        /**
         * @param deploymentName Name of the deployment resource
         * 
         * @return builder
         * 
         */
        public Builder deploymentName(String deploymentName) {
            return deploymentName(Output.of(deploymentName));
        }

        public Builder properties(Output properties) {
            $.properties = properties;
            return this;
        }

        public Builder properties(EndpointDeploymentResourcePropertiesArgs 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));
        }

        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        public Builder sku(CognitiveServicesSkuArgs sku) {
            return sku(Output.of(sku));
        }

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

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

        public ConnectionDeploymentArgs build() {
            if ($.connectionName == null) {
                throw new MissingRequiredPropertyException("ConnectionDeploymentArgs", "connectionName");
            }
            if ($.properties == null) {
                throw new MissingRequiredPropertyException("ConnectionDeploymentArgs", "properties");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConnectionDeploymentArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("ConnectionDeploymentArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy