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

com.pulumi.azurenative.datafactory.outputs.DataLakeAnalyticsUSQLActivityResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.datafactory.outputs;

import com.pulumi.azurenative.datafactory.outputs.ActivityDependencyResponse;
import com.pulumi.azurenative.datafactory.outputs.ActivityPolicyResponse;
import com.pulumi.azurenative.datafactory.outputs.LinkedServiceReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.UserPropertyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DataLakeAnalyticsUSQLActivityResponse {
    /**
     * @return Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object compilationMode;
    /**
     * @return The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1.
     * 
     */
    private @Nullable Object degreeOfParallelism;
    /**
     * @return Activity depends on condition.
     * 
     */
    private @Nullable List dependsOn;
    /**
     * @return Activity description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Linked service reference.
     * 
     */
    private @Nullable LinkedServiceReferenceResponse linkedServiceName;
    /**
     * @return Activity name.
     * 
     */
    private String name;
    /**
     * @return Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
     * 
     */
    private @Nullable String onInactiveMarkAs;
    /**
     * @return Parameters for U-SQL job request.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return Activity policy.
     * 
     */
    private @Nullable ActivityPolicyResponse policy;
    /**
     * @return Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1.
     * 
     */
    private @Nullable Object priority;
    /**
     * @return Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object runtimeVersion;
    /**
     * @return Script linked service reference.
     * 
     */
    private LinkedServiceReferenceResponse scriptLinkedService;
    /**
     * @return Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string).
     * 
     */
    private Object scriptPath;
    /**
     * @return Activity state. This is an optional property and if not provided, the state will be Active by default.
     * 
     */
    private @Nullable String state;
    /**
     * @return Type of activity.
     * Expected value is 'DataLakeAnalyticsU-SQL'.
     * 
     */
    private String type;
    /**
     * @return Activity user properties.
     * 
     */
    private @Nullable List userProperties;

    private DataLakeAnalyticsUSQLActivityResponse() {}
    /**
     * @return Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string).
     * 
     */
    public Optional compilationMode() {
        return Optional.ofNullable(this.compilationMode);
    }
    /**
     * @return The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1.
     * 
     */
    public Optional degreeOfParallelism() {
        return Optional.ofNullable(this.degreeOfParallelism);
    }
    /**
     * @return Activity depends on condition.
     * 
     */
    public List dependsOn() {
        return this.dependsOn == null ? List.of() : this.dependsOn;
    }
    /**
     * @return Activity description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Linked service reference.
     * 
     */
    public Optional linkedServiceName() {
        return Optional.ofNullable(this.linkedServiceName);
    }
    /**
     * @return Activity name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
     * 
     */
    public Optional onInactiveMarkAs() {
        return Optional.ofNullable(this.onInactiveMarkAs);
    }
    /**
     * @return Parameters for U-SQL job request.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return Activity policy.
     * 
     */
    public Optional policy() {
        return Optional.ofNullable(this.policy);
    }
    /**
     * @return Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1.
     * 
     */
    public Optional priority() {
        return Optional.ofNullable(this.priority);
    }
    /**
     * @return Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string).
     * 
     */
    public Optional runtimeVersion() {
        return Optional.ofNullable(this.runtimeVersion);
    }
    /**
     * @return Script linked service reference.
     * 
     */
    public LinkedServiceReferenceResponse scriptLinkedService() {
        return this.scriptLinkedService;
    }
    /**
     * @return Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string).
     * 
     */
    public Object scriptPath() {
        return this.scriptPath;
    }
    /**
     * @return Activity state. This is an optional property and if not provided, the state will be Active by default.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }
    /**
     * @return Type of activity.
     * Expected value is 'DataLakeAnalyticsU-SQL'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Activity user properties.
     * 
     */
    public List userProperties() {
        return this.userProperties == null ? List.of() : this.userProperties;
    }

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

    public static Builder builder(DataLakeAnalyticsUSQLActivityResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object compilationMode;
        private @Nullable Object degreeOfParallelism;
        private @Nullable List dependsOn;
        private @Nullable String description;
        private @Nullable LinkedServiceReferenceResponse linkedServiceName;
        private String name;
        private @Nullable String onInactiveMarkAs;
        private @Nullable Map parameters;
        private @Nullable ActivityPolicyResponse policy;
        private @Nullable Object priority;
        private @Nullable Object runtimeVersion;
        private LinkedServiceReferenceResponse scriptLinkedService;
        private Object scriptPath;
        private @Nullable String state;
        private String type;
        private @Nullable List userProperties;
        public Builder() {}
        public Builder(DataLakeAnalyticsUSQLActivityResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.compilationMode = defaults.compilationMode;
    	      this.degreeOfParallelism = defaults.degreeOfParallelism;
    	      this.dependsOn = defaults.dependsOn;
    	      this.description = defaults.description;
    	      this.linkedServiceName = defaults.linkedServiceName;
    	      this.name = defaults.name;
    	      this.onInactiveMarkAs = defaults.onInactiveMarkAs;
    	      this.parameters = defaults.parameters;
    	      this.policy = defaults.policy;
    	      this.priority = defaults.priority;
    	      this.runtimeVersion = defaults.runtimeVersion;
    	      this.scriptLinkedService = defaults.scriptLinkedService;
    	      this.scriptPath = defaults.scriptPath;
    	      this.state = defaults.state;
    	      this.type = defaults.type;
    	      this.userProperties = defaults.userProperties;
        }

        @CustomType.Setter
        public Builder compilationMode(@Nullable Object compilationMode) {

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

            this.degreeOfParallelism = degreeOfParallelism;
            return this;
        }
        @CustomType.Setter
        public Builder dependsOn(@Nullable List dependsOn) {

            this.dependsOn = dependsOn;
            return this;
        }
        public Builder dependsOn(ActivityDependencyResponse... dependsOn) {
            return dependsOn(List.of(dependsOn));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

            this.linkedServiceName = linkedServiceName;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("DataLakeAnalyticsUSQLActivityResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder onInactiveMarkAs(@Nullable String onInactiveMarkAs) {

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

            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder policy(@Nullable ActivityPolicyResponse policy) {

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

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

            this.runtimeVersion = runtimeVersion;
            return this;
        }
        @CustomType.Setter
        public Builder scriptLinkedService(LinkedServiceReferenceResponse scriptLinkedService) {
            if (scriptLinkedService == null) {
              throw new MissingRequiredPropertyException("DataLakeAnalyticsUSQLActivityResponse", "scriptLinkedService");
            }
            this.scriptLinkedService = scriptLinkedService;
            return this;
        }
        @CustomType.Setter
        public Builder scriptPath(Object scriptPath) {
            if (scriptPath == null) {
              throw new MissingRequiredPropertyException("DataLakeAnalyticsUSQLActivityResponse", "scriptPath");
            }
            this.scriptPath = scriptPath;
            return this;
        }
        @CustomType.Setter
        public Builder state(@Nullable String state) {

            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("DataLakeAnalyticsUSQLActivityResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder userProperties(@Nullable List userProperties) {

            this.userProperties = userProperties;
            return this;
        }
        public Builder userProperties(UserPropertyResponse... userProperties) {
            return userProperties(List.of(userProperties));
        }
        public DataLakeAnalyticsUSQLActivityResponse build() {
            final var _resultValue = new DataLakeAnalyticsUSQLActivityResponse();
            _resultValue.compilationMode = compilationMode;
            _resultValue.degreeOfParallelism = degreeOfParallelism;
            _resultValue.dependsOn = dependsOn;
            _resultValue.description = description;
            _resultValue.linkedServiceName = linkedServiceName;
            _resultValue.name = name;
            _resultValue.onInactiveMarkAs = onInactiveMarkAs;
            _resultValue.parameters = parameters;
            _resultValue.policy = policy;
            _resultValue.priority = priority;
            _resultValue.runtimeVersion = runtimeVersion;
            _resultValue.scriptLinkedService = scriptLinkedService;
            _resultValue.scriptPath = scriptPath;
            _resultValue.state = state;
            _resultValue.type = type;
            _resultValue.userProperties = userProperties;
            return _resultValue;
        }
    }
}