// *** 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.outputs;

import com.pulumi.azure.datafactory.outputs.FlowletDataFlowSinkDataset;
import com.pulumi.azure.datafactory.outputs.FlowletDataFlowSinkFlowlet;
import com.pulumi.azure.datafactory.outputs.FlowletDataFlowSinkLinkedService;
import com.pulumi.azure.datafactory.outputs.FlowletDataFlowSinkRejectedLinkedService;
import com.pulumi.azure.datafactory.outputs.FlowletDataFlowSinkSchemaLinkedService;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class FlowletDataFlowSink {
    /**
     * @return A `dataset` block as defined below.
     * 
     */
    private @Nullable FlowletDataFlowSinkDataset dataset;
    /**
     * @return The description for the Data Flow Source.
     * 
     */
    private @Nullable String description;
    /**
     * @return A `flowlet` block as defined below.
     * 
     */
    private @Nullable FlowletDataFlowSinkFlowlet flowlet;
    /**
     * @return A `linked_service` block as defined below.
     * 
     */
    private @Nullable FlowletDataFlowSinkLinkedService linkedService;
    /**
     * @return The name for the Data Flow Source.
     * 
     */
    private String name;
    /**
     * @return A `rejected_linked_service` block as defined below.
     * 
     */
    private @Nullable FlowletDataFlowSinkRejectedLinkedService rejectedLinkedService;
    /**
     * @return A `schema_linked_service` block as defined below.
     * 
     */
    private @Nullable FlowletDataFlowSinkSchemaLinkedService schemaLinkedService;

    private FlowletDataFlowSink() {}
    /**
     * @return A `dataset` block as defined below.
     * 
     */
    public Optional<FlowletDataFlowSinkDataset> dataset() {
        return Optional.ofNullable(this.dataset);
    }
    /**
     * @return The description for the Data Flow Source.
     * 
     */
    public Optional<String> description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return A `flowlet` block as defined below.
     * 
     */
    public Optional<FlowletDataFlowSinkFlowlet> flowlet() {
        return Optional.ofNullable(this.flowlet);
    }
    /**
     * @return A `linked_service` block as defined below.
     * 
     */
    public Optional<FlowletDataFlowSinkLinkedService> linkedService() {
        return Optional.ofNullable(this.linkedService);
    }
    /**
     * @return The name for the Data Flow Source.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return A `rejected_linked_service` block as defined below.
     * 
     */
    public Optional<FlowletDataFlowSinkRejectedLinkedService> rejectedLinkedService() {
        return Optional.ofNullable(this.rejectedLinkedService);
    }
    /**
     * @return A `schema_linked_service` block as defined below.
     * 
     */
    public Optional<FlowletDataFlowSinkSchemaLinkedService> schemaLinkedService() {
        return Optional.ofNullable(this.schemaLinkedService);
    }

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

    public static Builder builder(FlowletDataFlowSink defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable FlowletDataFlowSinkDataset dataset;
        private @Nullable String description;
        private @Nullable FlowletDataFlowSinkFlowlet flowlet;
        private @Nullable FlowletDataFlowSinkLinkedService linkedService;
        private String name;
        private @Nullable FlowletDataFlowSinkRejectedLinkedService rejectedLinkedService;
        private @Nullable FlowletDataFlowSinkSchemaLinkedService schemaLinkedService;
        public Builder() {}
        public Builder(FlowletDataFlowSink defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataset = defaults.dataset;
    	      this.description = defaults.description;
    	      this.flowlet = defaults.flowlet;
    	      this.linkedService = defaults.linkedService;
    	      this.name = defaults.name;
    	      this.rejectedLinkedService = defaults.rejectedLinkedService;
    	      this.schemaLinkedService = defaults.schemaLinkedService;
        }

        @CustomType.Setter
        public Builder dataset(@Nullable FlowletDataFlowSinkDataset dataset) {
            this.dataset = dataset;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder flowlet(@Nullable FlowletDataFlowSinkFlowlet flowlet) {
            this.flowlet = flowlet;
            return this;
        }
        @CustomType.Setter
        public Builder linkedService(@Nullable FlowletDataFlowSinkLinkedService linkedService) {
            this.linkedService = linkedService;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder rejectedLinkedService(@Nullable FlowletDataFlowSinkRejectedLinkedService rejectedLinkedService) {
            this.rejectedLinkedService = rejectedLinkedService;
            return this;
        }
        @CustomType.Setter
        public Builder schemaLinkedService(@Nullable FlowletDataFlowSinkSchemaLinkedService schemaLinkedService) {
            this.schemaLinkedService = schemaLinkedService;
            return this;
        }
        public FlowletDataFlowSink build() {
            final var o = new FlowletDataFlowSink();
            o.dataset = dataset;
            o.description = description;
            o.flowlet = flowlet;
            o.linkedService = linkedService;
            o.name = name;
            o.rejectedLinkedService = rejectedLinkedService;
            o.schemaLinkedService = schemaLinkedService;
            return o;
        }
    }
}
