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

com.pulumi.azurenative.datafactory.outputs.DelimitedTextDatasetResponse Maven / Gradle / Ivy

The 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.AmazonS3CompatibleLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonS3LocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobFSLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataLakeStoreLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureFileStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.DatasetResponseFolder;
import com.pulumi.azurenative.datafactory.outputs.FileServerLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.FtpServerLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleCloudStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.HdfsLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.HttpServerLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.LakeHouseLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.LinkedServiceReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleCloudStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
import com.pulumi.azurenative.datafactory.outputs.SftpLocationResponse;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DelimitedTextDatasetResponse {
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return The column delimiter. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object columnDelimiter;
    /**
     * @return The data compressionCodec. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object compressionCodec;
    /**
     * @return The data compression method used for DelimitedText.
     * 
     */
    private @Nullable Object compressionLevel;
    /**
     * @return Dataset description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object encodingName;
    /**
     * @return The escape character. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object escapeChar;
    /**
     * @return When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object firstRowAsHeader;
    /**
     * @return The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     * 
     */
    private @Nullable DatasetResponseFolder folder;
    /**
     * @return Linked service reference.
     * 
     */
    private LinkedServiceReferenceResponse linkedServiceName;
    /**
     * @return The location of the delimited text storage.
     * 
     */
    private Object location;
    /**
     * @return The null value string. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object nullValue;
    /**
     * @return Parameters for dataset.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return The quote character. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object quoteChar;
    /**
     * @return The row delimiter. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object rowDelimiter;
    /**
     * @return Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     * 
     */
    private @Nullable Object schema;
    /**
     * @return Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     * 
     */
    private @Nullable Object structure;
    /**
     * @return Type of dataset.
     * Expected value is 'DelimitedText'.
     * 
     */
    private String type;

    private DelimitedTextDatasetResponse() {}
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return The column delimiter. Type: string (or Expression with resultType string).
     * 
     */
    public Optional columnDelimiter() {
        return Optional.ofNullable(this.columnDelimiter);
    }
    /**
     * @return The data compressionCodec. Type: string (or Expression with resultType string).
     * 
     */
    public Optional compressionCodec() {
        return Optional.ofNullable(this.compressionCodec);
    }
    /**
     * @return The data compression method used for DelimitedText.
     * 
     */
    public Optional compressionLevel() {
        return Optional.ofNullable(this.compressionLevel);
    }
    /**
     * @return Dataset description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. Refer to the name column of the table in the following link to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType string).
     * 
     */
    public Optional encodingName() {
        return Optional.ofNullable(this.encodingName);
    }
    /**
     * @return The escape character. Type: string (or Expression with resultType string).
     * 
     */
    public Optional escapeChar() {
        return Optional.ofNullable(this.escapeChar);
    }
    /**
     * @return When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional firstRowAsHeader() {
        return Optional.ofNullable(this.firstRowAsHeader);
    }
    /**
     * @return The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     * 
     */
    public Optional folder() {
        return Optional.ofNullable(this.folder);
    }
    /**
     * @return Linked service reference.
     * 
     */
    public LinkedServiceReferenceResponse linkedServiceName() {
        return this.linkedServiceName;
    }
    /**
     * @return The location of the delimited text storage.
     * 
     */
    public Object location() {
        return this.location;
    }
    /**
     * @return The null value string. Type: string (or Expression with resultType string).
     * 
     */
    public Optional nullValue() {
        return Optional.ofNullable(this.nullValue);
    }
    /**
     * @return Parameters for dataset.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return The quote character. Type: string (or Expression with resultType string).
     * 
     */
    public Optional quoteChar() {
        return Optional.ofNullable(this.quoteChar);
    }
    /**
     * @return The row delimiter. Type: string (or Expression with resultType string).
     * 
     */
    public Optional rowDelimiter() {
        return Optional.ofNullable(this.rowDelimiter);
    }
    /**
     * @return Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     * 
     */
    public Optional schema() {
        return Optional.ofNullable(this.schema);
    }
    /**
     * @return Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     * 
     */
    public Optional structure() {
        return Optional.ofNullable(this.structure);
    }
    /**
     * @return Type of dataset.
     * Expected value is 'DelimitedText'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(DelimitedTextDatasetResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable Object columnDelimiter;
        private @Nullable Object compressionCodec;
        private @Nullable Object compressionLevel;
        private @Nullable String description;
        private @Nullable Object encodingName;
        private @Nullable Object escapeChar;
        private @Nullable Object firstRowAsHeader;
        private @Nullable DatasetResponseFolder folder;
        private LinkedServiceReferenceResponse linkedServiceName;
        private Object location;
        private @Nullable Object nullValue;
        private @Nullable Map parameters;
        private @Nullable Object quoteChar;
        private @Nullable Object rowDelimiter;
        private @Nullable Object schema;
        private @Nullable Object structure;
        private String type;
        public Builder() {}
        public Builder(DelimitedTextDatasetResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.columnDelimiter = defaults.columnDelimiter;
    	      this.compressionCodec = defaults.compressionCodec;
    	      this.compressionLevel = defaults.compressionLevel;
    	      this.description = defaults.description;
    	      this.encodingName = defaults.encodingName;
    	      this.escapeChar = defaults.escapeChar;
    	      this.firstRowAsHeader = defaults.firstRowAsHeader;
    	      this.folder = defaults.folder;
    	      this.linkedServiceName = defaults.linkedServiceName;
    	      this.location = defaults.location;
    	      this.nullValue = defaults.nullValue;
    	      this.parameters = defaults.parameters;
    	      this.quoteChar = defaults.quoteChar;
    	      this.rowDelimiter = defaults.rowDelimiter;
    	      this.schema = defaults.schema;
    	      this.structure = defaults.structure;
    	      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 columnDelimiter(@Nullable Object columnDelimiter) {

            this.columnDelimiter = columnDelimiter;
            return this;
        }
        @CustomType.Setter
        public Builder compressionCodec(@Nullable Object compressionCodec) {

            this.compressionCodec = compressionCodec;
            return this;
        }
        @CustomType.Setter
        public Builder compressionLevel(@Nullable Object compressionLevel) {

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

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

            this.encodingName = encodingName;
            return this;
        }
        @CustomType.Setter
        public Builder escapeChar(@Nullable Object escapeChar) {

            this.escapeChar = escapeChar;
            return this;
        }
        @CustomType.Setter
        public Builder firstRowAsHeader(@Nullable Object firstRowAsHeader) {

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

            this.folder = folder;
            return this;
        }
        @CustomType.Setter
        public Builder linkedServiceName(LinkedServiceReferenceResponse linkedServiceName) {
            if (linkedServiceName == null) {
              throw new MissingRequiredPropertyException("DelimitedTextDatasetResponse", "linkedServiceName");
            }
            this.linkedServiceName = linkedServiceName;
            return this;
        }
        @CustomType.Setter
        public Builder location(Object location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("DelimitedTextDatasetResponse", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder nullValue(@Nullable Object nullValue) {

            this.nullValue = nullValue;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable Map parameters) {

            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder quoteChar(@Nullable Object quoteChar) {

            this.quoteChar = quoteChar;
            return this;
        }
        @CustomType.Setter
        public Builder rowDelimiter(@Nullable Object rowDelimiter) {

            this.rowDelimiter = rowDelimiter;
            return this;
        }
        @CustomType.Setter
        public Builder schema(@Nullable Object schema) {

            this.schema = schema;
            return this;
        }
        @CustomType.Setter
        public Builder structure(@Nullable Object structure) {

            this.structure = structure;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("DelimitedTextDatasetResponse", "type");
            }
            this.type = type;
            return this;
        }
        public DelimitedTextDatasetResponse build() {
            final var _resultValue = new DelimitedTextDatasetResponse();
            _resultValue.annotations = annotations;
            _resultValue.columnDelimiter = columnDelimiter;
            _resultValue.compressionCodec = compressionCodec;
            _resultValue.compressionLevel = compressionLevel;
            _resultValue.description = description;
            _resultValue.encodingName = encodingName;
            _resultValue.escapeChar = escapeChar;
            _resultValue.firstRowAsHeader = firstRowAsHeader;
            _resultValue.folder = folder;
            _resultValue.linkedServiceName = linkedServiceName;
            _resultValue.location = location;
            _resultValue.nullValue = nullValue;
            _resultValue.parameters = parameters;
            _resultValue.quoteChar = quoteChar;
            _resultValue.rowDelimiter = rowDelimiter;
            _resultValue.schema = schema;
            _resultValue.structure = structure;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}