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

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

There is a newer version: 2.78.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.AutoMLJobArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.CommandJobArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.PipelineJobArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.SweepJobArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final JobArgs Empty = new JobArgs();

    /**
     * The name and identifier for the Job. This is case-sensitive.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The name and identifier for the Job. This is case-sensitive.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * [Required] Additional attributes of the entity.
     * 
     */
    @Import(name="jobBaseProperties", required=true)
    private Output jobBaseProperties;

    /**
     * @return [Required] Additional attributes of the entity.
     * 
     */
    public Output jobBaseProperties() {
        return this.jobBaseProperties;
    }

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

    /**
     * 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 JobArgs() {}

    private JobArgs(JobArgs $) {
        this.id = $.id;
        this.jobBaseProperties = $.jobBaseProperties;
        this.resourceGroupName = $.resourceGroupName;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private JobArgs $;

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

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

        /**
         * @param id The name and identifier for the Job. This is case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The name and identifier for the Job. This is case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param jobBaseProperties [Required] Additional attributes of the entity.
         * 
         * @return builder
         * 
         */
        public Builder jobBaseProperties(Output jobBaseProperties) {
            $.jobBaseProperties = jobBaseProperties;
            return this;
        }

        /**
         * @param jobBaseProperties [Required] Additional attributes of the entity.
         * 
         * @return builder
         * 
         */
        public Builder jobBaseProperties(Object jobBaseProperties) {
            return jobBaseProperties(Output.of(jobBaseProperties));
        }

        /**
         * @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 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 JobArgs build() {
            if ($.jobBaseProperties == null) {
                throw new MissingRequiredPropertyException("JobArgs", "jobBaseProperties");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("JobArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("JobArgs", "workspaceName");
            }
            return $;
        }
    }

}