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

com.pulumi.azurenative.datafactory.inputs.OrcWriteSettingsArgs Maven / Gradle / Ivy

// *** 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;


/**
 * Orc write settings.
 * 
 */
public final class OrcWriteSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final OrcWriteSettingsArgs Empty = new OrcWriteSettingsArgs();

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

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

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

    private OrcWriteSettingsArgs() {}

    private OrcWriteSettingsArgs(OrcWriteSettingsArgs $) {
        this.fileNamePrefix = $.fileNamePrefix;
        this.maxRowsPerFile = $.maxRowsPerFile;
        this.type = $.type;
    }

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

    public static final class Builder {
        private OrcWriteSettingsArgs $;

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

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

        /**
         * @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 type The write setting type.
         * Expected value is 'OrcWriteSettings'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

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

        public OrcWriteSettingsArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}