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

com.pulumi.azurenative.datafactory.outputs.RestSinkResponse 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 RestSinkResponse {
    /**
     * @return The additional HTTP headers in the request to the RESTful API. Type: key value pairs (value should be string type).
     * 
     */
    private @Nullable Object additionalHeaders;
    /**
     * @return If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object disableMetricsCollection;
    /**
     * @return Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported option is Gzip. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object httpCompressionType;
    /**
     * @return The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    private @Nullable Object httpRequestTimeout;
    /**
     * @return The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object maxConcurrentConnections;
    /**
     * @return The time to await before sending next request, in milliseconds
     * 
     */
    private @Nullable Object requestInterval;
    /**
     * @return The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object requestMethod;
    /**
     * @return Sink retry count. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object sinkRetryCount;
    /**
     * @return Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    private @Nullable Object sinkRetryWait;
    /**
     * @return Copy sink type.
     * Expected value is 'RestSink'.
     * 
     */
    private String type;
    /**
     * @return Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    private @Nullable Object writeBatchSize;
    /**
     * @return Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    private @Nullable Object writeBatchTimeout;

    private RestSinkResponse() {}
    /**
     * @return The additional HTTP headers in the request to the RESTful API. Type: key value pairs (value should be string type).
     * 
     */
    public Optional additionalHeaders() {
        return Optional.ofNullable(this.additionalHeaders);
    }
    /**
     * @return If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional disableMetricsCollection() {
        return Optional.ofNullable(this.disableMetricsCollection);
    }
    /**
     * @return Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported option is Gzip. Type: string (or Expression with resultType string).
     * 
     */
    public Optional httpCompressionType() {
        return Optional.ofNullable(this.httpCompressionType);
    }
    /**
     * @return The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. Default value: 00:01:40. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    public Optional httpRequestTimeout() {
        return Optional.ofNullable(this.httpRequestTimeout);
    }
    /**
     * @return The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional maxConcurrentConnections() {
        return Optional.ofNullable(this.maxConcurrentConnections);
    }
    /**
     * @return The time to await before sending next request, in milliseconds
     * 
     */
    public Optional requestInterval() {
        return Optional.ofNullable(this.requestInterval);
    }
    /**
     * @return The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression with resultType string).
     * 
     */
    public Optional requestMethod() {
        return Optional.ofNullable(this.requestMethod);
    }
    /**
     * @return Sink retry count. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional sinkRetryCount() {
        return Optional.ofNullable(this.sinkRetryCount);
    }
    /**
     * @return Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    public Optional sinkRetryWait() {
        return Optional.ofNullable(this.sinkRetryWait);
    }
    /**
     * @return Copy sink type.
     * Expected value is 'RestSink'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    public Optional writeBatchSize() {
        return Optional.ofNullable(this.writeBatchSize);
    }
    /**
     * @return Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    public Optional writeBatchTimeout() {
        return Optional.ofNullable(this.writeBatchTimeout);
    }

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

    public static Builder builder(RestSinkResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object additionalHeaders;
        private @Nullable Object disableMetricsCollection;
        private @Nullable Object httpCompressionType;
        private @Nullable Object httpRequestTimeout;
        private @Nullable Object maxConcurrentConnections;
        private @Nullable Object requestInterval;
        private @Nullable Object requestMethod;
        private @Nullable Object sinkRetryCount;
        private @Nullable Object sinkRetryWait;
        private String type;
        private @Nullable Object writeBatchSize;
        private @Nullable Object writeBatchTimeout;
        public Builder() {}
        public Builder(RestSinkResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalHeaders = defaults.additionalHeaders;
    	      this.disableMetricsCollection = defaults.disableMetricsCollection;
    	      this.httpCompressionType = defaults.httpCompressionType;
    	      this.httpRequestTimeout = defaults.httpRequestTimeout;
    	      this.maxConcurrentConnections = defaults.maxConcurrentConnections;
    	      this.requestInterval = defaults.requestInterval;
    	      this.requestMethod = defaults.requestMethod;
    	      this.sinkRetryCount = defaults.sinkRetryCount;
    	      this.sinkRetryWait = defaults.sinkRetryWait;
    	      this.type = defaults.type;
    	      this.writeBatchSize = defaults.writeBatchSize;
    	      this.writeBatchTimeout = defaults.writeBatchTimeout;
        }

        @CustomType.Setter
        public Builder additionalHeaders(@Nullable Object additionalHeaders) {

            this.additionalHeaders = additionalHeaders;
            return this;
        }
        @CustomType.Setter
        public Builder disableMetricsCollection(@Nullable Object disableMetricsCollection) {

            this.disableMetricsCollection = disableMetricsCollection;
            return this;
        }
        @CustomType.Setter
        public Builder httpCompressionType(@Nullable Object httpCompressionType) {

            this.httpCompressionType = httpCompressionType;
            return this;
        }
        @CustomType.Setter
        public Builder httpRequestTimeout(@Nullable Object httpRequestTimeout) {

            this.httpRequestTimeout = httpRequestTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder maxConcurrentConnections(@Nullable Object maxConcurrentConnections) {

            this.maxConcurrentConnections = maxConcurrentConnections;
            return this;
        }
        @CustomType.Setter
        public Builder requestInterval(@Nullable Object requestInterval) {

            this.requestInterval = requestInterval;
            return this;
        }
        @CustomType.Setter
        public Builder requestMethod(@Nullable Object requestMethod) {

            this.requestMethod = requestMethod;
            return this;
        }
        @CustomType.Setter
        public Builder sinkRetryCount(@Nullable Object sinkRetryCount) {

            this.sinkRetryCount = sinkRetryCount;
            return this;
        }
        @CustomType.Setter
        public Builder sinkRetryWait(@Nullable Object sinkRetryWait) {

            this.sinkRetryWait = sinkRetryWait;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("RestSinkResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder writeBatchSize(@Nullable Object writeBatchSize) {

            this.writeBatchSize = writeBatchSize;
            return this;
        }
        @CustomType.Setter
        public Builder writeBatchTimeout(@Nullable Object writeBatchTimeout) {

            this.writeBatchTimeout = writeBatchTimeout;
            return this;
        }
        public RestSinkResponse build() {
            final var _resultValue = new RestSinkResponse();
            _resultValue.additionalHeaders = additionalHeaders;
            _resultValue.disableMetricsCollection = disableMetricsCollection;
            _resultValue.httpCompressionType = httpCompressionType;
            _resultValue.httpRequestTimeout = httpRequestTimeout;
            _resultValue.maxConcurrentConnections = maxConcurrentConnections;
            _resultValue.requestInterval = requestInterval;
            _resultValue.requestMethod = requestMethod;
            _resultValue.sinkRetryCount = sinkRetryCount;
            _resultValue.sinkRetryWait = sinkRetryWait;
            _resultValue.type = type;
            _resultValue.writeBatchSize = writeBatchSize;
            _resultValue.writeBatchTimeout = writeBatchTimeout;
            return _resultValue;
        }
    }
}