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

com.pulumi.digitalocean.inputs.DatabasePostgresqlConfigPgbouncerArgs Maven / Gradle / Ivy

There is a newer version: 4.35.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.digitalocean.inputs;

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


public final class DatabasePostgresqlConfigPgbouncerArgs extends com.pulumi.resources.ResourceArgs {

    public static final DatabasePostgresqlConfigPgbouncerArgs Empty = new DatabasePostgresqlConfigPgbouncerArgs();

    @Import(name="autodbIdleTimeout")
    private @Nullable Output autodbIdleTimeout;

    public Optional> autodbIdleTimeout() {
        return Optional.ofNullable(this.autodbIdleTimeout);
    }

    @Import(name="autodbMaxDbConnections")
    private @Nullable Output autodbMaxDbConnections;

    public Optional> autodbMaxDbConnections() {
        return Optional.ofNullable(this.autodbMaxDbConnections);
    }

    @Import(name="autodbPoolMode")
    private @Nullable Output autodbPoolMode;

    public Optional> autodbPoolMode() {
        return Optional.ofNullable(this.autodbPoolMode);
    }

    @Import(name="autodbPoolSize")
    private @Nullable Output autodbPoolSize;

    public Optional> autodbPoolSize() {
        return Optional.ofNullable(this.autodbPoolSize);
    }

    @Import(name="ignoreStartupParameters")
    private @Nullable Output> ignoreStartupParameters;

    public Optional>> ignoreStartupParameters() {
        return Optional.ofNullable(this.ignoreStartupParameters);
    }

    @Import(name="minPoolSize")
    private @Nullable Output minPoolSize;

    public Optional> minPoolSize() {
        return Optional.ofNullable(this.minPoolSize);
    }

    @Import(name="serverIdleTimeout")
    private @Nullable Output serverIdleTimeout;

    public Optional> serverIdleTimeout() {
        return Optional.ofNullable(this.serverIdleTimeout);
    }

    @Import(name="serverLifetime")
    private @Nullable Output serverLifetime;

    public Optional> serverLifetime() {
        return Optional.ofNullable(this.serverLifetime);
    }

    @Import(name="serverResetQueryAlways")
    private @Nullable Output serverResetQueryAlways;

    public Optional> serverResetQueryAlways() {
        return Optional.ofNullable(this.serverResetQueryAlways);
    }

    private DatabasePostgresqlConfigPgbouncerArgs() {}

    private DatabasePostgresqlConfigPgbouncerArgs(DatabasePostgresqlConfigPgbouncerArgs $) {
        this.autodbIdleTimeout = $.autodbIdleTimeout;
        this.autodbMaxDbConnections = $.autodbMaxDbConnections;
        this.autodbPoolMode = $.autodbPoolMode;
        this.autodbPoolSize = $.autodbPoolSize;
        this.ignoreStartupParameters = $.ignoreStartupParameters;
        this.minPoolSize = $.minPoolSize;
        this.serverIdleTimeout = $.serverIdleTimeout;
        this.serverLifetime = $.serverLifetime;
        this.serverResetQueryAlways = $.serverResetQueryAlways;
    }

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

    public static final class Builder {
        private DatabasePostgresqlConfigPgbouncerArgs $;

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

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

        public Builder autodbIdleTimeout(@Nullable Output autodbIdleTimeout) {
            $.autodbIdleTimeout = autodbIdleTimeout;
            return this;
        }

        public Builder autodbIdleTimeout(Integer autodbIdleTimeout) {
            return autodbIdleTimeout(Output.of(autodbIdleTimeout));
        }

        public Builder autodbMaxDbConnections(@Nullable Output autodbMaxDbConnections) {
            $.autodbMaxDbConnections = autodbMaxDbConnections;
            return this;
        }

        public Builder autodbMaxDbConnections(Integer autodbMaxDbConnections) {
            return autodbMaxDbConnections(Output.of(autodbMaxDbConnections));
        }

        public Builder autodbPoolMode(@Nullable Output autodbPoolMode) {
            $.autodbPoolMode = autodbPoolMode;
            return this;
        }

        public Builder autodbPoolMode(String autodbPoolMode) {
            return autodbPoolMode(Output.of(autodbPoolMode));
        }

        public Builder autodbPoolSize(@Nullable Output autodbPoolSize) {
            $.autodbPoolSize = autodbPoolSize;
            return this;
        }

        public Builder autodbPoolSize(Integer autodbPoolSize) {
            return autodbPoolSize(Output.of(autodbPoolSize));
        }

        public Builder ignoreStartupParameters(@Nullable Output> ignoreStartupParameters) {
            $.ignoreStartupParameters = ignoreStartupParameters;
            return this;
        }

        public Builder ignoreStartupParameters(List ignoreStartupParameters) {
            return ignoreStartupParameters(Output.of(ignoreStartupParameters));
        }

        public Builder ignoreStartupParameters(String... ignoreStartupParameters) {
            return ignoreStartupParameters(List.of(ignoreStartupParameters));
        }

        public Builder minPoolSize(@Nullable Output minPoolSize) {
            $.minPoolSize = minPoolSize;
            return this;
        }

        public Builder minPoolSize(Integer minPoolSize) {
            return minPoolSize(Output.of(minPoolSize));
        }

        public Builder serverIdleTimeout(@Nullable Output serverIdleTimeout) {
            $.serverIdleTimeout = serverIdleTimeout;
            return this;
        }

        public Builder serverIdleTimeout(Integer serverIdleTimeout) {
            return serverIdleTimeout(Output.of(serverIdleTimeout));
        }

        public Builder serverLifetime(@Nullable Output serverLifetime) {
            $.serverLifetime = serverLifetime;
            return this;
        }

        public Builder serverLifetime(Integer serverLifetime) {
            return serverLifetime(Output.of(serverLifetime));
        }

        public Builder serverResetQueryAlways(@Nullable Output serverResetQueryAlways) {
            $.serverResetQueryAlways = serverResetQueryAlways;
            return this;
        }

        public Builder serverResetQueryAlways(Boolean serverResetQueryAlways) {
            return serverResetQueryAlways(Output.of(serverResetQueryAlways));
        }

        public DatabasePostgresqlConfigPgbouncerArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy