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

com.pulumi.azurenative.datafactory.inputs.WranglingDataFlowArgs 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.inputs;

import com.pulumi.azurenative.datafactory.inputs.DataFlowFolderArgs;
import com.pulumi.azurenative.datafactory.inputs.PowerQuerySourceArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Power Query data flow.
 * 
 */
public final class WranglingDataFlowArgs extends com.pulumi.resources.ResourceArgs {

    public static final WranglingDataFlowArgs Empty = new WranglingDataFlowArgs();

    /**
     * List of tags that can be used for describing the data flow.
     * 
     */
    @Import(name="annotations")
    private @Nullable Output> annotations;

    /**
     * @return List of tags that can be used for describing the data flow.
     * 
     */
    public Optional>> annotations() {
        return Optional.ofNullable(this.annotations);
    }

    /**
     * The description of the data flow.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the data flow.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Locale of the Power query mashup document.
     * 
     */
    @Import(name="documentLocale")
    private @Nullable Output documentLocale;

    /**
     * @return Locale of the Power query mashup document.
     * 
     */
    public Optional> documentLocale() {
        return Optional.ofNullable(this.documentLocale);
    }

    /**
     * The folder that this data flow is in. If not specified, Data flow will appear at the root level.
     * 
     */
    @Import(name="folder")
    private @Nullable Output folder;

    /**
     * @return The folder that this data flow is in. If not specified, Data flow will appear at the root level.
     * 
     */
    public Optional> folder() {
        return Optional.ofNullable(this.folder);
    }

    /**
     * Power query mashup script.
     * 
     */
    @Import(name="script")
    private @Nullable Output script;

    /**
     * @return Power query mashup script.
     * 
     */
    public Optional> script() {
        return Optional.ofNullable(this.script);
    }

    /**
     * List of sources in Power Query.
     * 
     */
    @Import(name="sources")
    private @Nullable Output> sources;

    /**
     * @return List of sources in Power Query.
     * 
     */
    public Optional>> sources() {
        return Optional.ofNullable(this.sources);
    }

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

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

    private WranglingDataFlowArgs() {}

    private WranglingDataFlowArgs(WranglingDataFlowArgs $) {
        this.annotations = $.annotations;
        this.description = $.description;
        this.documentLocale = $.documentLocale;
        this.folder = $.folder;
        this.script = $.script;
        this.sources = $.sources;
        this.type = $.type;
    }

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

    public static final class Builder {
        private WranglingDataFlowArgs $;

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

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

        /**
         * @param annotations List of tags that can be used for describing the data flow.
         * 
         * @return builder
         * 
         */
        public Builder annotations(@Nullable Output> annotations) {
            $.annotations = annotations;
            return this;
        }

        /**
         * @param annotations List of tags that can be used for describing the data flow.
         * 
         * @return builder
         * 
         */
        public Builder annotations(List annotations) {
            return annotations(Output.of(annotations));
        }

        /**
         * @param annotations List of tags that can be used for describing the data flow.
         * 
         * @return builder
         * 
         */
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }

        /**
         * @param description The description of the data flow.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the data flow.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param documentLocale Locale of the Power query mashup document.
         * 
         * @return builder
         * 
         */
        public Builder documentLocale(@Nullable Output documentLocale) {
            $.documentLocale = documentLocale;
            return this;
        }

        /**
         * @param documentLocale Locale of the Power query mashup document.
         * 
         * @return builder
         * 
         */
        public Builder documentLocale(String documentLocale) {
            return documentLocale(Output.of(documentLocale));
        }

        /**
         * @param folder The folder that this data flow is in. If not specified, Data flow will appear at the root level.
         * 
         * @return builder
         * 
         */
        public Builder folder(@Nullable Output folder) {
            $.folder = folder;
            return this;
        }

        /**
         * @param folder The folder that this data flow is in. If not specified, Data flow will appear at the root level.
         * 
         * @return builder
         * 
         */
        public Builder folder(DataFlowFolderArgs folder) {
            return folder(Output.of(folder));
        }

        /**
         * @param script Power query mashup script.
         * 
         * @return builder
         * 
         */
        public Builder script(@Nullable Output script) {
            $.script = script;
            return this;
        }

        /**
         * @param script Power query mashup script.
         * 
         * @return builder
         * 
         */
        public Builder script(String script) {
            return script(Output.of(script));
        }

        /**
         * @param sources List of sources in Power Query.
         * 
         * @return builder
         * 
         */
        public Builder sources(@Nullable Output> sources) {
            $.sources = sources;
            return this;
        }

        /**
         * @param sources List of sources in Power Query.
         * 
         * @return builder
         * 
         */
        public Builder sources(List sources) {
            return sources(Output.of(sources));
        }

        /**
         * @param sources List of sources in Power Query.
         * 
         * @return builder
         * 
         */
        public Builder sources(PowerQuerySourceArgs... sources) {
            return sources(List.of(sources));
        }

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

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

        public WranglingDataFlowArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}