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

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

import com.pulumi.azurenative.machinelearningservices.outputs.AmlTokenResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.CommandJobLimitsResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.CustomModelJobInputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.CustomModelJobOutputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.JobResourceConfigurationResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.JobServiceResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.LiteralJobInputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.MLFlowModelJobInputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.MLFlowModelJobOutputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.MLTableJobInputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.MLTableJobOutputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.ManagedIdentityResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.MpiResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.PyTorchResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.TensorFlowResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.TritonModelJobInputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.TritonModelJobOutputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.UriFileJobInputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.UriFileJobOutputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.UriFolderJobInputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.UriFolderJobOutputResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.UserIdentityResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CommandJobResponse {
    /**
     * @return ARM resource ID of the code asset.
     * 
     */
    private @Nullable String codeId;
    /**
     * @return [Required] The command to execute on startup of the job. eg. "python train.py"
     * 
     */
    private String command;
    /**
     * @return ARM resource ID of the component resource.
     * 
     */
    private @Nullable String componentId;
    /**
     * @return ARM resource ID of the compute resource.
     * 
     */
    private @Nullable String computeId;
    /**
     * @return The asset description text.
     * 
     */
    private @Nullable String description;
    /**
     * @return Display name of job.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
     * 
     */
    private @Nullable Object distribution;
    /**
     * @return [Required] The ARM resource ID of the Environment specification for the job.
     * 
     */
    private String environmentId;
    /**
     * @return Environment variables included in the job.
     * 
     */
    private @Nullable Map environmentVariables;
    /**
     * @return The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.
     * 
     */
    private @Nullable String experimentName;
    /**
     * @return Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null.
     * Defaults to AmlToken if null.
     * 
     */
    private @Nullable Object identity;
    /**
     * @return Mapping of input data bindings used in the job.
     * 
     */
    private @Nullable Map inputs;
    /**
     * @return Is the asset archived?
     * 
     */
    private @Nullable Boolean isArchived;
    /**
     * @return Enum to determine the type of job.
     * Expected value is 'Command'.
     * 
     */
    private String jobType;
    /**
     * @return Command Job limit.
     * 
     */
    private @Nullable CommandJobLimitsResponse limits;
    /**
     * @return Mapping of output data bindings used in the job.
     * 
     */
    private @Nullable Map outputs;
    /**
     * @return Input parameters.
     * 
     */
    private Object parameters;
    /**
     * @return The asset property dictionary.
     * 
     */
    private @Nullable Map properties;
    /**
     * @return Compute Resource configuration for the job.
     * 
     */
    private @Nullable JobResourceConfigurationResponse resources;
    /**
     * @return List of JobEndpoints.
     * For local jobs, a job endpoint will have an endpoint value of FileStreamObject.
     * 
     */
    private @Nullable Map services;
    /**
     * @return Status of the job.
     * 
     */
    private String status;
    /**
     * @return Tag dictionary. Tags can be added, removed, and updated.
     * 
     */
    private @Nullable Map tags;

    private CommandJobResponse() {}
    /**
     * @return ARM resource ID of the code asset.
     * 
     */
    public Optional codeId() {
        return Optional.ofNullable(this.codeId);
    }
    /**
     * @return [Required] The command to execute on startup of the job. eg. "python train.py"
     * 
     */
    public String command() {
        return this.command;
    }
    /**
     * @return ARM resource ID of the component resource.
     * 
     */
    public Optional componentId() {
        return Optional.ofNullable(this.componentId);
    }
    /**
     * @return ARM resource ID of the compute resource.
     * 
     */
    public Optional computeId() {
        return Optional.ofNullable(this.computeId);
    }
    /**
     * @return The asset description text.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Display name of job.
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
     * 
     */
    public Optional distribution() {
        return Optional.ofNullable(this.distribution);
    }
    /**
     * @return [Required] The ARM resource ID of the Environment specification for the job.
     * 
     */
    public String environmentId() {
        return this.environmentId;
    }
    /**
     * @return Environment variables included in the job.
     * 
     */
    public Map environmentVariables() {
        return this.environmentVariables == null ? Map.of() : this.environmentVariables;
    }
    /**
     * @return The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.
     * 
     */
    public Optional experimentName() {
        return Optional.ofNullable(this.experimentName);
    }
    /**
     * @return Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null.
     * Defaults to AmlToken if null.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return Mapping of input data bindings used in the job.
     * 
     */
    public Map inputs() {
        return this.inputs == null ? Map.of() : this.inputs;
    }
    /**
     * @return Is the asset archived?
     * 
     */
    public Optional isArchived() {
        return Optional.ofNullable(this.isArchived);
    }
    /**
     * @return Enum to determine the type of job.
     * Expected value is 'Command'.
     * 
     */
    public String jobType() {
        return this.jobType;
    }
    /**
     * @return Command Job limit.
     * 
     */
    public Optional limits() {
        return Optional.ofNullable(this.limits);
    }
    /**
     * @return Mapping of output data bindings used in the job.
     * 
     */
    public Map outputs() {
        return this.outputs == null ? Map.of() : this.outputs;
    }
    /**
     * @return Input parameters.
     * 
     */
    public Object parameters() {
        return this.parameters;
    }
    /**
     * @return The asset property dictionary.
     * 
     */
    public Map properties() {
        return this.properties == null ? Map.of() : this.properties;
    }
    /**
     * @return Compute Resource configuration for the job.
     * 
     */
    public Optional resources() {
        return Optional.ofNullable(this.resources);
    }
    /**
     * @return List of JobEndpoints.
     * For local jobs, a job endpoint will have an endpoint value of FileStreamObject.
     * 
     */
    public Map services() {
        return this.services == null ? Map.of() : this.services;
    }
    /**
     * @return Status of the job.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Tag dictionary. Tags can be added, removed, and updated.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }

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

    public static Builder builder(CommandJobResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String codeId;
        private String command;
        private @Nullable String componentId;
        private @Nullable String computeId;
        private @Nullable String description;
        private @Nullable String displayName;
        private @Nullable Object distribution;
        private String environmentId;
        private @Nullable Map environmentVariables;
        private @Nullable String experimentName;
        private @Nullable Object identity;
        private @Nullable Map inputs;
        private @Nullable Boolean isArchived;
        private String jobType;
        private @Nullable CommandJobLimitsResponse limits;
        private @Nullable Map outputs;
        private Object parameters;
        private @Nullable Map properties;
        private @Nullable JobResourceConfigurationResponse resources;
        private @Nullable Map services;
        private String status;
        private @Nullable Map tags;
        public Builder() {}
        public Builder(CommandJobResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.codeId = defaults.codeId;
    	      this.command = defaults.command;
    	      this.componentId = defaults.componentId;
    	      this.computeId = defaults.computeId;
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.distribution = defaults.distribution;
    	      this.environmentId = defaults.environmentId;
    	      this.environmentVariables = defaults.environmentVariables;
    	      this.experimentName = defaults.experimentName;
    	      this.identity = defaults.identity;
    	      this.inputs = defaults.inputs;
    	      this.isArchived = defaults.isArchived;
    	      this.jobType = defaults.jobType;
    	      this.limits = defaults.limits;
    	      this.outputs = defaults.outputs;
    	      this.parameters = defaults.parameters;
    	      this.properties = defaults.properties;
    	      this.resources = defaults.resources;
    	      this.services = defaults.services;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder codeId(@Nullable String codeId) {

            this.codeId = codeId;
            return this;
        }
        @CustomType.Setter
        public Builder command(String command) {
            if (command == null) {
              throw new MissingRequiredPropertyException("CommandJobResponse", "command");
            }
            this.command = command;
            return this;
        }
        @CustomType.Setter
        public Builder componentId(@Nullable String componentId) {

            this.componentId = componentId;
            return this;
        }
        @CustomType.Setter
        public Builder computeId(@Nullable String computeId) {

            this.computeId = computeId;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(@Nullable String displayName) {

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder distribution(@Nullable Object distribution) {

            this.distribution = distribution;
            return this;
        }
        @CustomType.Setter
        public Builder environmentId(String environmentId) {
            if (environmentId == null) {
              throw new MissingRequiredPropertyException("CommandJobResponse", "environmentId");
            }
            this.environmentId = environmentId;
            return this;
        }
        @CustomType.Setter
        public Builder environmentVariables(@Nullable Map environmentVariables) {

            this.environmentVariables = environmentVariables;
            return this;
        }
        @CustomType.Setter
        public Builder experimentName(@Nullable String experimentName) {

            this.experimentName = experimentName;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable Object identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder inputs(@Nullable Map inputs) {

            this.inputs = inputs;
            return this;
        }
        @CustomType.Setter
        public Builder isArchived(@Nullable Boolean isArchived) {

            this.isArchived = isArchived;
            return this;
        }
        @CustomType.Setter
        public Builder jobType(String jobType) {
            if (jobType == null) {
              throw new MissingRequiredPropertyException("CommandJobResponse", "jobType");
            }
            this.jobType = jobType;
            return this;
        }
        @CustomType.Setter
        public Builder limits(@Nullable CommandJobLimitsResponse limits) {

            this.limits = limits;
            return this;
        }
        @CustomType.Setter
        public Builder outputs(@Nullable Map outputs) {

            this.outputs = outputs;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(Object parameters) {
            if (parameters == null) {
              throw new MissingRequiredPropertyException("CommandJobResponse", "parameters");
            }
            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder properties(@Nullable Map properties) {

            this.properties = properties;
            return this;
        }
        @CustomType.Setter
        public Builder resources(@Nullable JobResourceConfigurationResponse resources) {

            this.resources = resources;
            return this;
        }
        @CustomType.Setter
        public Builder services(@Nullable Map services) {

            this.services = services;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("CommandJobResponse", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        public CommandJobResponse build() {
            final var _resultValue = new CommandJobResponse();
            _resultValue.codeId = codeId;
            _resultValue.command = command;
            _resultValue.componentId = componentId;
            _resultValue.computeId = computeId;
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.distribution = distribution;
            _resultValue.environmentId = environmentId;
            _resultValue.environmentVariables = environmentVariables;
            _resultValue.experimentName = experimentName;
            _resultValue.identity = identity;
            _resultValue.inputs = inputs;
            _resultValue.isArchived = isArchived;
            _resultValue.jobType = jobType;
            _resultValue.limits = limits;
            _resultValue.outputs = outputs;
            _resultValue.parameters = parameters;
            _resultValue.properties = properties;
            _resultValue.resources = resources;
            _resultValue.services = services;
            _resultValue.status = status;
            _resultValue.tags = tags;
            return _resultValue;
        }
    }
}