// *** 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.azure.datafactory.inputs;

import com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkDatasetArgs;
import com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkFlowletArgs;
import com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkLinkedServiceArgs;
import com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkRejectedLinkedServiceArgs;
import com.pulumi.azure.datafactory.inputs.FlowletDataFlowSinkSchemaLinkedServiceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FlowletDataFlowSinkArgs extends com.pulumi.resources.ResourceArgs {

    public static final FlowletDataFlowSinkArgs Empty = new FlowletDataFlowSinkArgs();

    /**
     * A `dataset` block as defined below.
     * 
     */
    @Import(name="dataset")
    private @Nullable Output<FlowletDataFlowSinkDatasetArgs> dataset;

    /**
     * @return A `dataset` block as defined below.
     * 
     */
    public Optional<Output<FlowletDataFlowSinkDatasetArgs>> dataset() {
        return Optional.ofNullable(this.dataset);
    }

    /**
     * The description for the Data Flow Source.
     * 
     */
    @Import(name="description")
    private @Nullable Output<String> description;

    /**
     * @return The description for the Data Flow Source.
     * 
     */
    public Optional<Output<String>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A `flowlet` block as defined below.
     * 
     */
    @Import(name="flowlet")
    private @Nullable Output<FlowletDataFlowSinkFlowletArgs> flowlet;

    /**
     * @return A `flowlet` block as defined below.
     * 
     */
    public Optional<Output<FlowletDataFlowSinkFlowletArgs>> flowlet() {
        return Optional.ofNullable(this.flowlet);
    }

    /**
     * A `linked_service` block as defined below.
     * 
     */
    @Import(name="linkedService")
    private @Nullable Output<FlowletDataFlowSinkLinkedServiceArgs> linkedService;

    /**
     * @return A `linked_service` block as defined below.
     * 
     */
    public Optional<Output<FlowletDataFlowSinkLinkedServiceArgs>> linkedService() {
        return Optional.ofNullable(this.linkedService);
    }

    /**
     * The name for the Data Flow Source.
     * 
     */
    @Import(name="name", required=true)
    private Output<String> name;

    /**
     * @return The name for the Data Flow Source.
     * 
     */
    public Output<String> name() {
        return this.name;
    }

    /**
     * A `rejected_linked_service` block as defined below.
     * 
     */
    @Import(name="rejectedLinkedService")
    private @Nullable Output<FlowletDataFlowSinkRejectedLinkedServiceArgs> rejectedLinkedService;

    /**
     * @return A `rejected_linked_service` block as defined below.
     * 
     */
    public Optional<Output<FlowletDataFlowSinkRejectedLinkedServiceArgs>> rejectedLinkedService() {
        return Optional.ofNullable(this.rejectedLinkedService);
    }

    /**
     * A `schema_linked_service` block as defined below.
     * 
     */
    @Import(name="schemaLinkedService")
    private @Nullable Output<FlowletDataFlowSinkSchemaLinkedServiceArgs> schemaLinkedService;

    /**
     * @return A `schema_linked_service` block as defined below.
     * 
     */
    public Optional<Output<FlowletDataFlowSinkSchemaLinkedServiceArgs>> schemaLinkedService() {
        return Optional.ofNullable(this.schemaLinkedService);
    }

    private FlowletDataFlowSinkArgs() {}

    private FlowletDataFlowSinkArgs(FlowletDataFlowSinkArgs $) {
        this.dataset = $.dataset;
        this.description = $.description;
        this.flowlet = $.flowlet;
        this.linkedService = $.linkedService;
        this.name = $.name;
        this.rejectedLinkedService = $.rejectedLinkedService;
        this.schemaLinkedService = $.schemaLinkedService;
    }

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

    public static final class Builder {
        private FlowletDataFlowSinkArgs $;

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

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

        /**
         * @param dataset A `dataset` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dataset(@Nullable Output<FlowletDataFlowSinkDatasetArgs> dataset) {
            $.dataset = dataset;
            return this;
        }

        /**
         * @param dataset A `dataset` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder dataset(FlowletDataFlowSinkDatasetArgs dataset) {
            return dataset(Output.of(dataset));
        }

        /**
         * @param description The description for the Data Flow Source.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output<String> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description for the Data Flow Source.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param flowlet A `flowlet` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder flowlet(@Nullable Output<FlowletDataFlowSinkFlowletArgs> flowlet) {
            $.flowlet = flowlet;
            return this;
        }

        /**
         * @param flowlet A `flowlet` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder flowlet(FlowletDataFlowSinkFlowletArgs flowlet) {
            return flowlet(Output.of(flowlet));
        }

        /**
         * @param linkedService A `linked_service` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder linkedService(@Nullable Output<FlowletDataFlowSinkLinkedServiceArgs> linkedService) {
            $.linkedService = linkedService;
            return this;
        }

        /**
         * @param linkedService A `linked_service` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder linkedService(FlowletDataFlowSinkLinkedServiceArgs linkedService) {
            return linkedService(Output.of(linkedService));
        }

        /**
         * @param name The name for the Data Flow Source.
         * 
         * @return builder
         * 
         */
        public Builder name(Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name for the Data Flow Source.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param rejectedLinkedService A `rejected_linked_service` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rejectedLinkedService(@Nullable Output<FlowletDataFlowSinkRejectedLinkedServiceArgs> rejectedLinkedService) {
            $.rejectedLinkedService = rejectedLinkedService;
            return this;
        }

        /**
         * @param rejectedLinkedService A `rejected_linked_service` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder rejectedLinkedService(FlowletDataFlowSinkRejectedLinkedServiceArgs rejectedLinkedService) {
            return rejectedLinkedService(Output.of(rejectedLinkedService));
        }

        /**
         * @param schemaLinkedService A `schema_linked_service` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schemaLinkedService(@Nullable Output<FlowletDataFlowSinkSchemaLinkedServiceArgs> schemaLinkedService) {
            $.schemaLinkedService = schemaLinkedService;
            return this;
        }

        /**
         * @param schemaLinkedService A `schema_linked_service` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder schemaLinkedService(FlowletDataFlowSinkSchemaLinkedServiceArgs schemaLinkedService) {
            return schemaLinkedService(Output.of(schemaLinkedService));
        }

        public FlowletDataFlowSinkArgs build() {
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            return $;
        }
    }

}
