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

com.pulumi.azurenative.datafactory.inputs.ExecuteWranglingDataflowActivityArgs Maven / Gradle / Ivy

The 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.inputs;

import com.pulumi.azurenative.datafactory.enums.ActivityOnInactiveMarkAs;
import com.pulumi.azurenative.datafactory.enums.ActivityState;
import com.pulumi.azurenative.datafactory.inputs.ActivityDependencyArgs;
import com.pulumi.azurenative.datafactory.inputs.ActivityPolicyArgs;
import com.pulumi.azurenative.datafactory.inputs.ContinuationSettingsReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.DataFlowReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.DataFlowStagingInfoArgs;
import com.pulumi.azurenative.datafactory.inputs.ExecuteDataFlowActivityTypePropertiesComputeArgs;
import com.pulumi.azurenative.datafactory.inputs.IntegrationRuntimeReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.PowerQuerySinkArgs;
import com.pulumi.azurenative.datafactory.inputs.PowerQuerySinkMappingArgs;
import com.pulumi.azurenative.datafactory.inputs.UserPropertyArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
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;


/**
 * Execute power query activity.
 * 
 */
public final class ExecuteWranglingDataflowActivityArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExecuteWranglingDataflowActivityArgs Empty = new ExecuteWranglingDataflowActivityArgs();

    /**
     * Compute properties for data flow activity.
     * 
     */
    @Import(name="compute")
    private @Nullable Output compute;

    /**
     * @return Compute properties for data flow activity.
     * 
     */
    public Optional> compute() {
        return Optional.ofNullable(this.compute);
    }

    /**
     * Continuation settings for execute data flow activity.
     * 
     */
    @Import(name="continuationSettings")
    private @Nullable Output continuationSettings;

    /**
     * @return Continuation settings for execute data flow activity.
     * 
     */
    public Optional> continuationSettings() {
        return Optional.ofNullable(this.continuationSettings);
    }

    /**
     * Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean)
     * 
     */
    @Import(name="continueOnError")
    private @Nullable Output continueOnError;

    /**
     * @return Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean)
     * 
     */
    public Optional> continueOnError() {
        return Optional.ofNullable(this.continueOnError);
    }

    /**
     * Data flow reference.
     * 
     */
    @Import(name="dataFlow", required=true)
    private Output dataFlow;

    /**
     * @return Data flow reference.
     * 
     */
    public Output dataFlow() {
        return this.dataFlow;
    }

    /**
     * Activity depends on condition.
     * 
     */
    @Import(name="dependsOn")
    private @Nullable Output> dependsOn;

    /**
     * @return Activity depends on condition.
     * 
     */
    public Optional>> dependsOn() {
        return Optional.ofNullable(this.dependsOn);
    }

    /**
     * Activity description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Activity description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The integration runtime reference.
     * 
     */
    @Import(name="integrationRuntime")
    private @Nullable Output integrationRuntime;

    /**
     * @return The integration runtime reference.
     * 
     */
    public Optional> integrationRuntime() {
        return Optional.ofNullable(this.integrationRuntime);
    }

    /**
     * Activity name.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Activity name.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * 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.
     * 
     */
    @Import(name="onInactiveMarkAs")
    private @Nullable Output> onInactiveMarkAs;

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

    /**
     * Activity policy.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return Activity policy.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * List of mapping for Power Query mashup query to sink dataset(s).
     * 
     */
    @Import(name="queries")
    private @Nullable Output> queries;

    /**
     * @return List of mapping for Power Query mashup query to sink dataset(s).
     * 
     */
    public Optional>> queries() {
        return Optional.ofNullable(this.queries);
    }

    /**
     * Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean)
     * 
     */
    @Import(name="runConcurrently")
    private @Nullable Output runConcurrently;

    /**
     * @return Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean)
     * 
     */
    public Optional> runConcurrently() {
        return Optional.ofNullable(this.runConcurrently);
    }

    /**
     * (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName.
     * 
     */
    @Import(name="sinks")
    private @Nullable Output> sinks;

    /**
     * @return (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName.
     * 
     */
    public Optional>> sinks() {
        return Optional.ofNullable(this.sinks);
    }

    /**
     * Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer)
     * 
     */
    @Import(name="sourceStagingConcurrency")
    private @Nullable Output sourceStagingConcurrency;

    /**
     * @return Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer)
     * 
     */
    public Optional> sourceStagingConcurrency() {
        return Optional.ofNullable(this.sourceStagingConcurrency);
    }

    /**
     * Staging info for execute data flow activity.
     * 
     */
    @Import(name="staging")
    private @Nullable Output staging;

    /**
     * @return Staging info for execute data flow activity.
     * 
     */
    public Optional> staging() {
        return Optional.ofNullable(this.staging);
    }

    /**
     * Activity state. This is an optional property and if not provided, the state will be Active by default.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

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

    /**
     * Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string)
     * 
     */
    @Import(name="traceLevel")
    private @Nullable Output traceLevel;

    /**
     * @return Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string)
     * 
     */
    public Optional> traceLevel() {
        return Optional.ofNullable(this.traceLevel);
    }

    /**
     * Type of activity.
     * Expected value is 'ExecuteWranglingDataflow'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of activity.
     * Expected value is 'ExecuteWranglingDataflow'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Activity user properties.
     * 
     */
    @Import(name="userProperties")
    private @Nullable Output> userProperties;

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

    private ExecuteWranglingDataflowActivityArgs() {}

    private ExecuteWranglingDataflowActivityArgs(ExecuteWranglingDataflowActivityArgs $) {
        this.compute = $.compute;
        this.continuationSettings = $.continuationSettings;
        this.continueOnError = $.continueOnError;
        this.dataFlow = $.dataFlow;
        this.dependsOn = $.dependsOn;
        this.description = $.description;
        this.integrationRuntime = $.integrationRuntime;
        this.name = $.name;
        this.onInactiveMarkAs = $.onInactiveMarkAs;
        this.policy = $.policy;
        this.queries = $.queries;
        this.runConcurrently = $.runConcurrently;
        this.sinks = $.sinks;
        this.sourceStagingConcurrency = $.sourceStagingConcurrency;
        this.staging = $.staging;
        this.state = $.state;
        this.traceLevel = $.traceLevel;
        this.type = $.type;
        this.userProperties = $.userProperties;
    }

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

    public static final class Builder {
        private ExecuteWranglingDataflowActivityArgs $;

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

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

        /**
         * @param compute Compute properties for data flow activity.
         * 
         * @return builder
         * 
         */
        public Builder compute(@Nullable Output compute) {
            $.compute = compute;
            return this;
        }

        /**
         * @param compute Compute properties for data flow activity.
         * 
         * @return builder
         * 
         */
        public Builder compute(ExecuteDataFlowActivityTypePropertiesComputeArgs compute) {
            return compute(Output.of(compute));
        }

        /**
         * @param continuationSettings Continuation settings for execute data flow activity.
         * 
         * @return builder
         * 
         */
        public Builder continuationSettings(@Nullable Output continuationSettings) {
            $.continuationSettings = continuationSettings;
            return this;
        }

        /**
         * @param continuationSettings Continuation settings for execute data flow activity.
         * 
         * @return builder
         * 
         */
        public Builder continuationSettings(ContinuationSettingsReferenceArgs continuationSettings) {
            return continuationSettings(Output.of(continuationSettings));
        }

        /**
         * @param continueOnError Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean)
         * 
         * @return builder
         * 
         */
        public Builder continueOnError(@Nullable Output continueOnError) {
            $.continueOnError = continueOnError;
            return this;
        }

        /**
         * @param continueOnError Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or Expression with resultType boolean)
         * 
         * @return builder
         * 
         */
        public Builder continueOnError(Object continueOnError) {
            return continueOnError(Output.of(continueOnError));
        }

        /**
         * @param dataFlow Data flow reference.
         * 
         * @return builder
         * 
         */
        public Builder dataFlow(Output dataFlow) {
            $.dataFlow = dataFlow;
            return this;
        }

        /**
         * @param dataFlow Data flow reference.
         * 
         * @return builder
         * 
         */
        public Builder dataFlow(DataFlowReferenceArgs dataFlow) {
            return dataFlow(Output.of(dataFlow));
        }

        /**
         * @param dependsOn Activity depends on condition.
         * 
         * @return builder
         * 
         */
        public Builder dependsOn(@Nullable Output> dependsOn) {
            $.dependsOn = dependsOn;
            return this;
        }

        /**
         * @param dependsOn Activity depends on condition.
         * 
         * @return builder
         * 
         */
        public Builder dependsOn(List dependsOn) {
            return dependsOn(Output.of(dependsOn));
        }

        /**
         * @param dependsOn Activity depends on condition.
         * 
         * @return builder
         * 
         */
        public Builder dependsOn(ActivityDependencyArgs... dependsOn) {
            return dependsOn(List.of(dependsOn));
        }

        /**
         * @param description Activity description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Activity description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param integrationRuntime The integration runtime reference.
         * 
         * @return builder
         * 
         */
        public Builder integrationRuntime(@Nullable Output integrationRuntime) {
            $.integrationRuntime = integrationRuntime;
            return this;
        }

        /**
         * @param integrationRuntime The integration runtime reference.
         * 
         * @return builder
         * 
         */
        public Builder integrationRuntime(IntegrationRuntimeReferenceArgs integrationRuntime) {
            return integrationRuntime(Output.of(integrationRuntime));
        }

        /**
         * @param name Activity name.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Activity name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

        /**
         * @param onInactiveMarkAs 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.
         * 
         * @return builder
         * 
         */
        public Builder onInactiveMarkAs(Either onInactiveMarkAs) {
            return onInactiveMarkAs(Output.of(onInactiveMarkAs));
        }

        /**
         * @param onInactiveMarkAs 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.
         * 
         * @return builder
         * 
         */
        public Builder onInactiveMarkAs(String onInactiveMarkAs) {
            return onInactiveMarkAs(Either.ofLeft(onInactiveMarkAs));
        }

        /**
         * @param onInactiveMarkAs 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.
         * 
         * @return builder
         * 
         */
        public Builder onInactiveMarkAs(ActivityOnInactiveMarkAs onInactiveMarkAs) {
            return onInactiveMarkAs(Either.ofRight(onInactiveMarkAs));
        }

        /**
         * @param policy Activity policy.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy Activity policy.
         * 
         * @return builder
         * 
         */
        public Builder policy(ActivityPolicyArgs policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param queries List of mapping for Power Query mashup query to sink dataset(s).
         * 
         * @return builder
         * 
         */
        public Builder queries(@Nullable Output> queries) {
            $.queries = queries;
            return this;
        }

        /**
         * @param queries List of mapping for Power Query mashup query to sink dataset(s).
         * 
         * @return builder
         * 
         */
        public Builder queries(List queries) {
            return queries(Output.of(queries));
        }

        /**
         * @param queries List of mapping for Power Query mashup query to sink dataset(s).
         * 
         * @return builder
         * 
         */
        public Builder queries(PowerQuerySinkMappingArgs... queries) {
            return queries(List.of(queries));
        }

        /**
         * @param runConcurrently Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean)
         * 
         * @return builder
         * 
         */
        public Builder runConcurrently(@Nullable Output runConcurrently) {
            $.runConcurrently = runConcurrently;
            return this;
        }

        /**
         * @param runConcurrently Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean)
         * 
         * @return builder
         * 
         */
        public Builder runConcurrently(Object runConcurrently) {
            return runConcurrently(Output.of(runConcurrently));
        }

        /**
         * @param sinks (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName.
         * 
         * @return builder
         * 
         */
        public Builder sinks(@Nullable Output> sinks) {
            $.sinks = sinks;
            return this;
        }

        /**
         * @param sinks (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName.
         * 
         * @return builder
         * 
         */
        public Builder sinks(Map sinks) {
            return sinks(Output.of(sinks));
        }

        /**
         * @param sourceStagingConcurrency Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer)
         * 
         * @return builder
         * 
         */
        public Builder sourceStagingConcurrency(@Nullable Output sourceStagingConcurrency) {
            $.sourceStagingConcurrency = sourceStagingConcurrency;
            return this;
        }

        /**
         * @param sourceStagingConcurrency Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer)
         * 
         * @return builder
         * 
         */
        public Builder sourceStagingConcurrency(Object sourceStagingConcurrency) {
            return sourceStagingConcurrency(Output.of(sourceStagingConcurrency));
        }

        /**
         * @param staging Staging info for execute data flow activity.
         * 
         * @return builder
         * 
         */
        public Builder staging(@Nullable Output staging) {
            $.staging = staging;
            return this;
        }

        /**
         * @param staging Staging info for execute data flow activity.
         * 
         * @return builder
         * 
         */
        public Builder staging(DataFlowStagingInfoArgs staging) {
            return staging(Output.of(staging));
        }

        /**
         * @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state Activity state. This is an optional property and if not provided, the state will be Active by default.
         * 
         * @return builder
         * 
         */
        public Builder state(ActivityState state) {
            return state(Either.ofRight(state));
        }

        /**
         * @param traceLevel Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string)
         * 
         * @return builder
         * 
         */
        public Builder traceLevel(@Nullable Output traceLevel) {
            $.traceLevel = traceLevel;
            return this;
        }

        /**
         * @param traceLevel Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string (or Expression with resultType string)
         * 
         * @return builder
         * 
         */
        public Builder traceLevel(Object traceLevel) {
            return traceLevel(Output.of(traceLevel));
        }

        /**
         * @param type Type of activity.
         * Expected value is 'ExecuteWranglingDataflow'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of activity.
         * Expected value is 'ExecuteWranglingDataflow'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param userProperties Activity user properties.
         * 
         * @return builder
         * 
         */
        public Builder userProperties(@Nullable Output> userProperties) {
            $.userProperties = userProperties;
            return this;
        }

        /**
         * @param userProperties Activity user properties.
         * 
         * @return builder
         * 
         */
        public Builder userProperties(List userProperties) {
            return userProperties(Output.of(userProperties));
        }

        /**
         * @param userProperties Activity user properties.
         * 
         * @return builder
         * 
         */
        public Builder userProperties(UserPropertyArgs... userProperties) {
            return userProperties(List.of(userProperties));
        }

        public ExecuteWranglingDataflowActivityArgs build() {
            if ($.dataFlow == null) {
                throw new MissingRequiredPropertyException("ExecuteWranglingDataflowActivityArgs", "dataFlow");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ExecuteWranglingDataflowActivityArgs", "name");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}