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

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

import com.pulumi.azurenative.datafactory.outputs.DataFlowResponseFolder;
import com.pulumi.azurenative.datafactory.outputs.PowerQuerySourceResponse;
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 WranglingDataFlowResponse {
    /**
     * @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 Locale of the Power query mashup document.
     * 
     */
    private @Nullable String documentLocale;
    /**
     * @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 Power query mashup script.
     * 
     */
    private @Nullable String script;
    /**
     * @return List of sources in Power Query.
     * 
     */
    private @Nullable List sources;
    /**
     * @return Type of data flow.
     * Expected value is 'WranglingDataFlow'.
     * 
     */
    private String type;

    private WranglingDataFlowResponse() {}
    /**
     * @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 Locale of the Power query mashup document.
     * 
     */
    public Optional documentLocale() {
        return Optional.ofNullable(this.documentLocale);
    }
    /**
     * @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 Power query mashup script.
     * 
     */
    public Optional script() {
        return Optional.ofNullable(this.script);
    }
    /**
     * @return List of sources in Power Query.
     * 
     */
    public List sources() {
        return this.sources == null ? List.of() : this.sources;
    }
    /**
     * @return Type of data flow.
     * Expected value is 'WranglingDataFlow'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(WranglingDataFlowResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable String description;
        private @Nullable String documentLocale;
        private @Nullable DataFlowResponseFolder folder;
        private @Nullable String script;
        private @Nullable List sources;
        private String type;
        public Builder() {}
        public Builder(WranglingDataFlowResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.description = defaults.description;
    	      this.documentLocale = defaults.documentLocale;
    	      this.folder = defaults.folder;
    	      this.script = defaults.script;
    	      this.sources = defaults.sources;
    	      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 documentLocale(@Nullable String documentLocale) {

            this.documentLocale = documentLocale;
            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 sources(@Nullable List sources) {

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