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

com.pulumi.azurenative.streamanalytics.inputs.CompressionArgs 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.streamanalytics.inputs;

import com.pulumi.azurenative.streamanalytics.enums.CompressionType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Describes how input data is compressed
 * 
 */
public final class CompressionArgs extends com.pulumi.resources.ResourceArgs {

    public static final CompressionArgs Empty = new CompressionArgs();

    /**
     * Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Output> type() {
        return this.type;
    }

    private CompressionArgs() {}

    private CompressionArgs(CompressionArgs $) {
        this.type = $.type;
    }

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

    public static final class Builder {
        private CompressionArgs $;

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

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

        /**
         * @param type Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder type(CompressionType type) {
            return type(Either.ofRight(type));
        }

        public CompressionArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("CompressionArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy