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

com.pulumi.azurenative.app.inputs.TcpConnectionPoolArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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 tcp connection pooling
 * 
 */
public final class TcpConnectionPoolArgs extends com.pulumi.resources.ResourceArgs {

    public static final TcpConnectionPoolArgs Empty = new TcpConnectionPoolArgs();

    /**
     * Maximum number of tcp connections allowed
     * 
     */
    @Import(name="maxConnections")
    private @Nullable Output maxConnections;

    /**
     * @return Maximum number of tcp connections allowed
     * 
     */
    public Optional> maxConnections() {
        return Optional.ofNullable(this.maxConnections);
    }

    private TcpConnectionPoolArgs() {}

    private TcpConnectionPoolArgs(TcpConnectionPoolArgs $) {
        this.maxConnections = $.maxConnections;
    }

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

    public static final class Builder {
        private TcpConnectionPoolArgs $;

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

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

        /**
         * @param maxConnections Maximum number of tcp connections allowed
         * 
         * @return builder
         * 
         */
        public Builder maxConnections(@Nullable Output maxConnections) {
            $.maxConnections = maxConnections;
            return this;
        }

        /**
         * @param maxConnections Maximum number of tcp connections allowed
         * 
         * @return builder
         * 
         */
        public Builder maxConnections(Integer maxConnections) {
            return maxConnections(Output.of(maxConnections));
        }

        public TcpConnectionPoolArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy