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

com.pulumi.azurenative.datafactory.outputs.FlowletResponse 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.outputs;

import com.pulumi.azurenative.datafactory.outputs.DataFlowResponseFolder;
import com.pulumi.azurenative.datafactory.outputs.DataFlowSinkResponse;
import com.pulumi.azurenative.datafactory.outputs.DataFlowSourceResponse;
import com.pulumi.azurenative.datafactory.outputs.TransformationResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class FlowletResponse {
    /**
     * @return List of tags that can be used for describing the data flow.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return The description of the data flow.
     * 
     */
    private @Nullable String description;
    /**
     * @return The folder that this data flow is in. If not specified, Data flow will appear at the root level.
     * 
     */
    private @Nullable DataFlowResponseFolder folder;
    /**
     * @return Flowlet script.
     * 
     */
    private @Nullable String script;
    /**
     * @return Flowlet script lines.
     * 
     */
    private @Nullable List scriptLines;
    /**
     * @return List of sinks in Flowlet.
     * 
     */
    private @Nullable List sinks;
    /**
     * @return List of sources in Flowlet.
     * 
     */
    private @Nullable List sources;
    /**
     * @return List of transformations in Flowlet.
     * 
     */
    private @Nullable List transformations;
    /**
     * @return Type of data flow.
     * Expected value is 'Flowlet'.
     * 
     */
    private String type;

    private FlowletResponse() {}
    /**
     * @return List of tags that can be used for describing the data flow.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return The description of the data flow.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @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);
    }
    /**
     * @return Flowlet script.
     * 
     */
    public Optional script() {
        return Optional.ofNullable(this.script);
    }
    /**
     * @return Flowlet script lines.
     * 
     */
    public List scriptLines() {
        return this.scriptLines == null ? List.of() : this.scriptLines;
    }
    /**
     * @return List of sinks in Flowlet.
     * 
     */
    public List sinks() {
        return this.sinks == null ? List.of() : this.sinks;
    }
    /**
     * @return List of sources in Flowlet.
     * 
     */
    public List sources() {
        return this.sources == null ? List.of() : this.sources;
    }
    /**
     * @return List of transformations in Flowlet.
     * 
     */
    public List transformations() {
        return this.transformations == null ? List.of() : this.transformations;
    }
    /**
     * @return Type of data flow.
     * Expected value is 'Flowlet'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(FlowletResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable String description;
        private @Nullable DataFlowResponseFolder folder;
        private @Nullable String script;
        private @Nullable List scriptLines;
        private @Nullable List sinks;
        private @Nullable List sources;
        private @Nullable List transformations;
        private String type;
        public Builder() {}
        public Builder(FlowletResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.description = defaults.description;
    	      this.folder = defaults.folder;
    	      this.script = defaults.script;
    	      this.scriptLines = defaults.scriptLines;
    	      this.sinks = defaults.sinks;
    	      this.sources = defaults.sources;
    	      this.transformations = defaults.transformations;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder annotations(@Nullable List annotations) {

            this.annotations = annotations;
            return this;
        }
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder folder(@Nullable DataFlowResponseFolder folder) {

            this.folder = folder;
            return this;
        }
        @CustomType.Setter
        public Builder script(@Nullable String script) {

            this.script = script;
            return this;
        }
        @CustomType.Setter
        public Builder scriptLines(@Nullable List scriptLines) {

            this.scriptLines = scriptLines;
            return this;
        }
        public Builder scriptLines(String... scriptLines) {
            return scriptLines(List.of(scriptLines));
        }
        @CustomType.Setter
        public Builder sinks(@Nullable List sinks) {

            this.sinks = sinks;
            return this;
        }
        public Builder sinks(DataFlowSinkResponse... sinks) {
            return sinks(List.of(sinks));
        }
        @CustomType.Setter
        public Builder sources(@Nullable List sources) {

            this.sources = sources;
            return this;
        }
        public Builder sources(DataFlowSourceResponse... sources) {
            return sources(List.of(sources));
        }
        @CustomType.Setter
        public Builder transformations(@Nullable List transformations) {

            this.transformations = transformations;
            return this;
        }
        public Builder transformations(TransformationResponse... transformations) {
            return transformations(List.of(transformations));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("FlowletResponse", "type");
            }
            this.type = type;
            return this;
        }
        public FlowletResponse build() {
            final var _resultValue = new FlowletResponse();
            _resultValue.annotations = annotations;
            _resultValue.description = description;
            _resultValue.folder = folder;
            _resultValue.script = script;
            _resultValue.scriptLines = scriptLines;
            _resultValue.sinks = sinks;
            _resultValue.sources = sources;
            _resultValue.transformations = transformations;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}