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

com.pulumi.azurenative.datafactory.inputs.DataFlowReferenceArgs 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.enums.DataFlowReferenceType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Data flow reference type.
 * 
 */
public final class DataFlowReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataFlowReferenceArgs Empty = new DataFlowReferenceArgs();

    /**
     * Reference data flow parameters from dataset.
     * 
     */
    @Import(name="datasetParameters")
    private @Nullable Output datasetParameters;

    /**
     * @return Reference data flow parameters from dataset.
     * 
     */
    public Optional> datasetParameters() {
        return Optional.ofNullable(this.datasetParameters);
    }

    /**
     * Data flow parameters
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

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

    /**
     * Reference data flow name.
     * 
     */
    @Import(name="referenceName", required=true)
    private Output referenceName;

    /**
     * @return Reference data flow name.
     * 
     */
    public Output referenceName() {
        return this.referenceName;
    }

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

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

    private DataFlowReferenceArgs() {}

    private DataFlowReferenceArgs(DataFlowReferenceArgs $) {
        this.datasetParameters = $.datasetParameters;
        this.parameters = $.parameters;
        this.referenceName = $.referenceName;
        this.type = $.type;
    }

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

    public static final class Builder {
        private DataFlowReferenceArgs $;

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

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

        /**
         * @param datasetParameters Reference data flow parameters from dataset.
         * 
         * @return builder
         * 
         */
        public Builder datasetParameters(@Nullable Output datasetParameters) {
            $.datasetParameters = datasetParameters;
            return this;
        }

        /**
         * @param datasetParameters Reference data flow parameters from dataset.
         * 
         * @return builder
         * 
         */
        public Builder datasetParameters(Object datasetParameters) {
            return datasetParameters(Output.of(datasetParameters));
        }

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

        /**
         * @param parameters Data flow parameters
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param referenceName Reference data flow name.
         * 
         * @return builder
         * 
         */
        public Builder referenceName(Output referenceName) {
            $.referenceName = referenceName;
            return this;
        }

        /**
         * @param referenceName Reference data flow name.
         * 
         * @return builder
         * 
         */
        public Builder referenceName(String referenceName) {
            return referenceName(Output.of(referenceName));
        }

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

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

        /**
         * @param type Data flow reference type.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Data flow reference type.
         * 
         * @return builder
         * 
         */
        public Builder type(DataFlowReferenceType type) {
            return type(Either.ofRight(type));
        }

        public DataFlowReferenceArgs build() {
            if ($.referenceName == null) {
                throw new MissingRequiredPropertyException("DataFlowReferenceArgs", "referenceName");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("DataFlowReferenceArgs", "type");
            }
            return $;
        }
    }

}