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

com.pulumi.azurenative.datafactory.inputs.JsonReadSettingsArgs 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.azurenative.datafactory.inputs.TarGZipReadSettingsArgs;
import com.pulumi.azurenative.datafactory.inputs.TarReadSettingsArgs;
import com.pulumi.azurenative.datafactory.inputs.ZipDeflateReadSettingsArgs;
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;


/**
 * Json read settings.
 * 
 */
public final class JsonReadSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final JsonReadSettingsArgs Empty = new JsonReadSettingsArgs();

    /**
     * Compression settings.
     * 
     */
    @Import(name="compressionProperties")
    private @Nullable Output compressionProperties;

    /**
     * @return Compression settings.
     * 
     */
    public Optional> compressionProperties() {
        return Optional.ofNullable(this.compressionProperties);
    }

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

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

    private JsonReadSettingsArgs() {}

    private JsonReadSettingsArgs(JsonReadSettingsArgs $) {
        this.compressionProperties = $.compressionProperties;
        this.type = $.type;
    }

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

    public static final class Builder {
        private JsonReadSettingsArgs $;

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

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

        /**
         * @param compressionProperties Compression settings.
         * 
         * @return builder
         * 
         */
        public Builder compressionProperties(@Nullable Output compressionProperties) {
            $.compressionProperties = compressionProperties;
            return this;
        }

        /**
         * @param compressionProperties Compression settings.
         * 
         * @return builder
         * 
         */
        public Builder compressionProperties(Object compressionProperties) {
            return compressionProperties(Output.of(compressionProperties));
        }

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

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

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

}