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

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


/**
 * Avro write settings.
 * 
 */
public final class AvroWriteSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final AvroWriteSettingsArgs Empty = new AvroWriteSettingsArgs();

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

    /**
     * Top level record name in write result, which is required in AVRO spec.
     * 
     */
    @Import(name="recordName")
    private @Nullable Output recordName;

    /**
     * @return Top level record name in write result, which is required in AVRO spec.
     * 
     */
    public Optional> recordName() {
        return Optional.ofNullable(this.recordName);
    }

    /**
     * Record namespace in the write result.
     * 
     */
    @Import(name="recordNamespace")
    private @Nullable Output recordNamespace;

    /**
     * @return Record namespace in the write result.
     * 
     */
    public Optional> recordNamespace() {
        return Optional.ofNullable(this.recordNamespace);
    }

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

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

    private AvroWriteSettingsArgs() {}

    private AvroWriteSettingsArgs(AvroWriteSettingsArgs $) {
        this.fileNamePrefix = $.fileNamePrefix;
        this.maxRowsPerFile = $.maxRowsPerFile;
        this.recordName = $.recordName;
        this.recordNamespace = $.recordNamespace;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AvroWriteSettingsArgs $;

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

        public Builder(AvroWriteSettingsArgs defaults) {
            $ = new AvroWriteSettingsArgs(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 recordName Top level record name in write result, which is required in AVRO spec.
         * 
         * @return builder
         * 
         */
        public Builder recordName(@Nullable Output recordName) {
            $.recordName = recordName;
            return this;
        }

        /**
         * @param recordName Top level record name in write result, which is required in AVRO spec.
         * 
         * @return builder
         * 
         */
        public Builder recordName(String recordName) {
            return recordName(Output.of(recordName));
        }

        /**
         * @param recordNamespace Record namespace in the write result.
         * 
         * @return builder
         * 
         */
        public Builder recordNamespace(@Nullable Output recordNamespace) {
            $.recordNamespace = recordNamespace;
            return this;
        }

        /**
         * @param recordNamespace Record namespace in the write result.
         * 
         * @return builder
         * 
         */
        public Builder recordNamespace(String recordNamespace) {
            return recordNamespace(Output.of(recordNamespace));
        }

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

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

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

}