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

com.pulumi.azurenative.datafactory.outputs.RestSourceResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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 RestSourceResponse {
    /**
     * @return Specifies the additional columns to be added to source data. Type: key value pairs (value should be string type).
     * 
     */
    private @Nullable Object additionalColumns;
    /**
     * @return The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).
     * 
     */
    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 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 source data store. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object maxConcurrentConnections;
    /**
     * @return The pagination rules to compose next page requests. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object paginationRules;
    /**
     * @return The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object requestBody;
    /**
     * @return The time to await before sending next page request.
     * 
     */
    private @Nullable Object requestInterval;
    /**
     * @return The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object requestMethod;
    /**
     * @return Source retry count. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object sourceRetryCount;
    /**
     * @return Source 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 sourceRetryWait;
    /**
     * @return Copy source type.
     * Expected value is 'RestSource'.
     * 
     */
    private String type;

    private RestSourceResponse() {}
    /**
     * @return Specifies the additional columns to be added to source data. Type: key value pairs (value should be string type).
     * 
     */
    public Optional additionalColumns() {
        return Optional.ofNullable(this.additionalColumns);
    }
    /**
     * @return The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string).
     * 
     */
    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 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 source data store. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional maxConcurrentConnections() {
        return Optional.ofNullable(this.maxConcurrentConnections);
    }
    /**
     * @return The pagination rules to compose next page requests. Type: string (or Expression with resultType string).
     * 
     */
    public Optional paginationRules() {
        return Optional.ofNullable(this.paginationRules);
    }
    /**
     * @return The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string).
     * 
     */
    public Optional requestBody() {
        return Optional.ofNullable(this.requestBody);
    }
    /**
     * @return The time to await before sending next page request.
     * 
     */
    public Optional requestInterval() {
        return Optional.ofNullable(this.requestInterval);
    }
    /**
     * @return The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string).
     * 
     */
    public Optional requestMethod() {
        return Optional.ofNullable(this.requestMethod);
    }
    /**
     * @return Source retry count. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional sourceRetryCount() {
        return Optional.ofNullable(this.sourceRetryCount);
    }
    /**
     * @return Source 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 sourceRetryWait() {
        return Optional.ofNullable(this.sourceRetryWait);
    }
    /**
     * @return Copy source type.
     * Expected value is 'RestSource'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(RestSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object additionalColumns;
        private @Nullable Object additionalHeaders;
        private @Nullable Object disableMetricsCollection;
        private @Nullable Object httpRequestTimeout;
        private @Nullable Object maxConcurrentConnections;
        private @Nullable Object paginationRules;
        private @Nullable Object requestBody;
        private @Nullable Object requestInterval;
        private @Nullable Object requestMethod;
        private @Nullable Object sourceRetryCount;
        private @Nullable Object sourceRetryWait;
        private String type;
        public Builder() {}
        public Builder(RestSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalColumns = defaults.additionalColumns;
    	      this.additionalHeaders = defaults.additionalHeaders;
    	      this.disableMetricsCollection = defaults.disableMetricsCollection;
    	      this.httpRequestTimeout = defaults.httpRequestTimeout;
    	      this.maxConcurrentConnections = defaults.maxConcurrentConnections;
    	      this.paginationRules = defaults.paginationRules;
    	      this.requestBody = defaults.requestBody;
    	      this.requestInterval = defaults.requestInterval;
    	      this.requestMethod = defaults.requestMethod;
    	      this.sourceRetryCount = defaults.sourceRetryCount;
    	      this.sourceRetryWait = defaults.sourceRetryWait;
    	      this.type = defaults.type;
        }

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

            this.additionalColumns = additionalColumns;
            return this;
        }
        @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 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 paginationRules(@Nullable Object paginationRules) {

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

            this.requestBody = requestBody;
            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 sourceRetryCount(@Nullable Object sourceRetryCount) {

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

            this.sourceRetryWait = sourceRetryWait;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("RestSourceResponse", "type");
            }
            this.type = type;
            return this;
        }
        public RestSourceResponse build() {
            final var _resultValue = new RestSourceResponse();
            _resultValue.additionalColumns = additionalColumns;
            _resultValue.additionalHeaders = additionalHeaders;
            _resultValue.disableMetricsCollection = disableMetricsCollection;
            _resultValue.httpRequestTimeout = httpRequestTimeout;
            _resultValue.maxConcurrentConnections = maxConcurrentConnections;
            _resultValue.paginationRules = paginationRules;
            _resultValue.requestBody = requestBody;
            _resultValue.requestInterval = requestInterval;
            _resultValue.requestMethod = requestMethod;
            _resultValue.sourceRetryCount = sourceRetryCount;
            _resultValue.sourceRetryWait = sourceRetryWait;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}