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

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

There is a newer version: 2.89.2
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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DelimitedTextWriteSettingsResponse {
    /**
     * @return The file extension used to create the files. Type: string (or Expression with resultType string).
     * 
     */
    private Object fileExtension;
    /**
     * @return Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object fileNamePrefix;
    /**
     * @return Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object maxRowsPerFile;
    /**
     * @return Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object quoteAllText;
    /**
     * @return The write setting type.
     * Expected value is 'DelimitedTextWriteSettings'.
     * 
     */
    private String type;

    private DelimitedTextWriteSettingsResponse() {}
    /**
     * @return The file extension used to create the files. Type: string (or Expression with resultType string).
     * 
     */
    public Object fileExtension() {
        return this.fileExtension;
    }
    /**
     * @return Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string).
     * 
     */
    public Optional fileNamePrefix() {
        return Optional.ofNullable(this.fileNamePrefix);
    }
    /**
     * @return Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional maxRowsPerFile() {
        return Optional.ofNullable(this.maxRowsPerFile);
    }
    /**
     * @return Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional quoteAllText() {
        return Optional.ofNullable(this.quoteAllText);
    }
    /**
     * @return The write setting type.
     * Expected value is 'DelimitedTextWriteSettings'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(DelimitedTextWriteSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Object fileExtension;
        private @Nullable Object fileNamePrefix;
        private @Nullable Object maxRowsPerFile;
        private @Nullable Object quoteAllText;
        private String type;
        public Builder() {}
        public Builder(DelimitedTextWriteSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fileExtension = defaults.fileExtension;
    	      this.fileNamePrefix = defaults.fileNamePrefix;
    	      this.maxRowsPerFile = defaults.maxRowsPerFile;
    	      this.quoteAllText = defaults.quoteAllText;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder fileExtension(Object fileExtension) {
            if (fileExtension == null) {
              throw new MissingRequiredPropertyException("DelimitedTextWriteSettingsResponse", "fileExtension");
            }
            this.fileExtension = fileExtension;
            return this;
        }
        @CustomType.Setter
        public Builder fileNamePrefix(@Nullable Object fileNamePrefix) {

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

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

            this.quoteAllText = quoteAllText;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("DelimitedTextWriteSettingsResponse", "type");
            }
            this.type = type;
            return this;
        }
        public DelimitedTextWriteSettingsResponse build() {
            final var _resultValue = new DelimitedTextWriteSettingsResponse();
            _resultValue.fileExtension = fileExtension;
            _resultValue.fileNamePrefix = fileNamePrefix;
            _resultValue.maxRowsPerFile = maxRowsPerFile;
            _resultValue.quoteAllText = quoteAllText;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}