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

com.pulumi.azurenative.app.inputs.HttpConnectionPoolArgs 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.app.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines parameters for http connection pooling
 * 
 */
public final class HttpConnectionPoolArgs extends com.pulumi.resources.ResourceArgs {

    public static final HttpConnectionPoolArgs Empty = new HttpConnectionPoolArgs();

    /**
     * Maximum number of pending http1 requests allowed
     * 
     */
    @Import(name="http1MaxPendingRequests")
    private @Nullable Output http1MaxPendingRequests;

    /**
     * @return Maximum number of pending http1 requests allowed
     * 
     */
    public Optional> http1MaxPendingRequests() {
        return Optional.ofNullable(this.http1MaxPendingRequests);
    }

    /**
     * Maximum number of http2 requests allowed
     * 
     */
    @Import(name="http2MaxRequests")
    private @Nullable Output http2MaxRequests;

    /**
     * @return Maximum number of http2 requests allowed
     * 
     */
    public Optional> http2MaxRequests() {
        return Optional.ofNullable(this.http2MaxRequests);
    }

    private HttpConnectionPoolArgs() {}

    private HttpConnectionPoolArgs(HttpConnectionPoolArgs $) {
        this.http1MaxPendingRequests = $.http1MaxPendingRequests;
        this.http2MaxRequests = $.http2MaxRequests;
    }

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

    public static final class Builder {
        private HttpConnectionPoolArgs $;

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

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

        /**
         * @param http1MaxPendingRequests Maximum number of pending http1 requests allowed
         * 
         * @return builder
         * 
         */
        public Builder http1MaxPendingRequests(@Nullable Output http1MaxPendingRequests) {
            $.http1MaxPendingRequests = http1MaxPendingRequests;
            return this;
        }

        /**
         * @param http1MaxPendingRequests Maximum number of pending http1 requests allowed
         * 
         * @return builder
         * 
         */
        public Builder http1MaxPendingRequests(Integer http1MaxPendingRequests) {
            return http1MaxPendingRequests(Output.of(http1MaxPendingRequests));
        }

        /**
         * @param http2MaxRequests Maximum number of http2 requests allowed
         * 
         * @return builder
         * 
         */
        public Builder http2MaxRequests(@Nullable Output http2MaxRequests) {
            $.http2MaxRequests = http2MaxRequests;
            return this;
        }

        /**
         * @param http2MaxRequests Maximum number of http2 requests allowed
         * 
         * @return builder
         * 
         */
        public Builder http2MaxRequests(Integer http2MaxRequests) {
            return http2MaxRequests(Output.of(http2MaxRequests));
        }

        public HttpConnectionPoolArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy