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

com.pulumi.azurenative.datafactory.outputs.AvroWriteSettingsResponse 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.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 AvroWriteSettingsResponse {
    /**
     * @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 Top level record name in write result, which is required in AVRO spec.
     * 
     */
    private @Nullable String recordName;
    /**
     * @return Record namespace in the write result.
     * 
     */
    private @Nullable String recordNamespace;
    /**
     * @return The write setting type.
     * Expected value is 'AvroWriteSettings'.
     * 
     */
    private String type;

    private AvroWriteSettingsResponse() {}
    /**
     * @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 Top level record name in write result, which is required in AVRO spec.
     * 
     */
    public Optional recordName() {
        return Optional.ofNullable(this.recordName);
    }
    /**
     * @return Record namespace in the write result.
     * 
     */
    public Optional recordNamespace() {
        return Optional.ofNullable(this.recordNamespace);
    }
    /**
     * @return The write setting type.
     * Expected value is 'AvroWriteSettings'.
     * 
     */
    public String type() {
        return this.type;
    }

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

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

        @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 recordName(@Nullable String recordName) {

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

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