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

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

import com.pulumi.azurenative.datafactory.inputs.DataFlowFolderArgs;
import com.pulumi.azurenative.datafactory.inputs.DataFlowSinkArgs;
import com.pulumi.azurenative.datafactory.inputs.DataFlowSourceArgs;
import com.pulumi.azurenative.datafactory.inputs.TransformationArgs;
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;


/**
 * Mapping data flow.
 * 
 */
public final class MappingDataFlowArgs extends com.pulumi.resources.ResourceArgs {

    public static final MappingDataFlowArgs Empty = new MappingDataFlowArgs();

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

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

    /**
     * DataFlow script.
     * 
     */
    @Import(name="script")
    private @Nullable Output script;

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

    /**
     * Data flow script lines.
     * 
     */
    @Import(name="scriptLines")
    private @Nullable Output> scriptLines;

    /**
     * @return Data flow script lines.
     * 
     */
    public Optional>> scriptLines() {
        return Optional.ofNullable(this.scriptLines);
    }

    /**
     * List of sinks in data flow.
     * 
     */
    @Import(name="sinks")
    private @Nullable Output> sinks;

    /**
     * @return List of sinks in data flow.
     * 
     */
    public Optional>> sinks() {
        return Optional.ofNullable(this.sinks);
    }

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

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

    /**
     * List of transformations in data flow.
     * 
     */
    @Import(name="transformations")
    private @Nullable Output> transformations;

    /**
     * @return List of transformations in data flow.
     * 
     */
    public Optional>> transformations() {
        return Optional.ofNullable(this.transformations);
    }

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

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

    private MappingDataFlowArgs() {}

    private MappingDataFlowArgs(MappingDataFlowArgs $) {
        this.annotations = $.annotations;
        this.description = $.description;
        this.folder = $.folder;
        this.script = $.script;
        this.scriptLines = $.scriptLines;
        this.sinks = $.sinks;
        this.sources = $.sources;
        this.transformations = $.transformations;
        this.type = $.type;
    }

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

    public static final class Builder {
        private MappingDataFlowArgs $;

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

        public Builder(MappingDataFlowArgs defaults) {
            $ = new MappingDataFlowArgs(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 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 DataFlow script.
         * 
         * @return builder
         * 
         */
        public Builder script(@Nullable Output script) {
            $.script = script;
            return this;
        }

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

        /**
         * @param scriptLines Data flow script lines.
         * 
         * @return builder
         * 
         */
        public Builder scriptLines(@Nullable Output> scriptLines) {
            $.scriptLines = scriptLines;
            return this;
        }

        /**
         * @param scriptLines Data flow script lines.
         * 
         * @return builder
         * 
         */
        public Builder scriptLines(List scriptLines) {
            return scriptLines(Output.of(scriptLines));
        }

        /**
         * @param scriptLines Data flow script lines.
         * 
         * @return builder
         * 
         */
        public Builder scriptLines(String... scriptLines) {
            return scriptLines(List.of(scriptLines));
        }

        /**
         * @param sinks List of sinks in data flow.
         * 
         * @return builder
         * 
         */
        public Builder sinks(@Nullable Output> sinks) {
            $.sinks = sinks;
            return this;
        }

        /**
         * @param sinks List of sinks in data flow.
         * 
         * @return builder
         * 
         */
        public Builder sinks(List sinks) {
            return sinks(Output.of(sinks));
        }

        /**
         * @param sinks List of sinks in data flow.
         * 
         * @return builder
         * 
         */
        public Builder sinks(DataFlowSinkArgs... sinks) {
            return sinks(List.of(sinks));
        }

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

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

        /**
         * @param sources List of sources in data flow.
         * 
         * @return builder
         * 
         */
        public Builder sources(DataFlowSourceArgs... sources) {
            return sources(List.of(sources));
        }

        /**
         * @param transformations List of transformations in data flow.
         * 
         * @return builder
         * 
         */
        public Builder transformations(@Nullable Output> transformations) {
            $.transformations = transformations;
            return this;
        }

        /**
         * @param transformations List of transformations in data flow.
         * 
         * @return builder
         * 
         */
        public Builder transformations(List transformations) {
            return transformations(Output.of(transformations));
        }

        /**
         * @param transformations List of transformations in data flow.
         * 
         * @return builder
         * 
         */
        public Builder transformations(TransformationArgs... transformations) {
            return transformations(List.of(transformations));
        }

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

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

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

}