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

com.pulumi.azurenative.datafactory.inputs.DelimitedTextWriteSettingsArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
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;


/**
 * Delimited text write settings.
 * 
 */
public final class DelimitedTextWriteSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final DelimitedTextWriteSettingsArgs Empty = new DelimitedTextWriteSettingsArgs();

    /**
     * The file extension used to create the files. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="fileExtension", required=true)
    private Output fileExtension;

    /**
     * @return The file extension used to create the files. Type: string (or Expression with resultType string).
     * 
     */
    public Output fileExtension() {
        return this.fileExtension;
    }

    /**
     * Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="fileNamePrefix")
    private @Nullable Output fileNamePrefix;

    /**
     * @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);
    }

    /**
     * Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer).
     * 
     */
    @Import(name="maxRowsPerFile")
    private @Nullable Output maxRowsPerFile;

    /**
     * @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);
    }

    /**
     * Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean).
     * 
     */
    @Import(name="quoteAllText")
    private @Nullable Output quoteAllText;

    /**
     * @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);
    }

    /**
     * The write setting type.
     * Expected value is 'DelimitedTextWriteSettings'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The write setting type.
     * Expected value is 'DelimitedTextWriteSettings'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private DelimitedTextWriteSettingsArgs() {}

    private DelimitedTextWriteSettingsArgs(DelimitedTextWriteSettingsArgs $) {
        this.fileExtension = $.fileExtension;
        this.fileNamePrefix = $.fileNamePrefix;
        this.maxRowsPerFile = $.maxRowsPerFile;
        this.quoteAllText = $.quoteAllText;
        this.type = $.type;
    }

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

    public static final class Builder {
        private DelimitedTextWriteSettingsArgs $;

        public Builder() {
            $ = new DelimitedTextWriteSettingsArgs();
        }

        public Builder(DelimitedTextWriteSettingsArgs defaults) {
            $ = new DelimitedTextWriteSettingsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param fileExtension The file extension used to create the files. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder fileExtension(Output fileExtension) {
            $.fileExtension = fileExtension;
            return this;
        }

        /**
         * @param fileExtension The file extension used to create the files. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder fileExtension(Object fileExtension) {
            return fileExtension(Output.of(fileExtension));
        }

        /**
         * @param fileNamePrefix Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder fileNamePrefix(@Nullable Output fileNamePrefix) {
            $.fileNamePrefix = fileNamePrefix;
            return this;
        }

        /**
         * @param fileNamePrefix Specifies the file name pattern <fileNamePrefix>_<fileIndex>.<fileExtension> when copy from non-file based store without partitionOptions. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder fileNamePrefix(Object fileNamePrefix) {
            return fileNamePrefix(Output.of(fileNamePrefix));
        }

        /**
         * @param maxRowsPerFile Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer).
         * 
         * @return builder
         * 
         */
        public Builder maxRowsPerFile(@Nullable Output maxRowsPerFile) {
            $.maxRowsPerFile = maxRowsPerFile;
            return this;
        }

        /**
         * @param maxRowsPerFile Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer).
         * 
         * @return builder
         * 
         */
        public Builder maxRowsPerFile(Object maxRowsPerFile) {
            return maxRowsPerFile(Output.of(maxRowsPerFile));
        }

        /**
         * @param quoteAllText Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean).
         * 
         * @return builder
         * 
         */
        public Builder quoteAllText(@Nullable Output quoteAllText) {
            $.quoteAllText = quoteAllText;
            return this;
        }

        /**
         * @param quoteAllText Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean).
         * 
         * @return builder
         * 
         */
        public Builder quoteAllText(Object quoteAllText) {
            return quoteAllText(Output.of(quoteAllText));
        }

        /**
         * @param type The write setting type.
         * Expected value is 'DelimitedTextWriteSettings'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The write setting type.
         * Expected value is 'DelimitedTextWriteSettings'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public DelimitedTextWriteSettingsArgs build() {
            if ($.fileExtension == null) {
                throw new MissingRequiredPropertyException("DelimitedTextWriteSettingsArgs", "fileExtension");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}