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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.PostgresSqlConnectionPoolState Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs;

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


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

    public static final PostgresSqlConnectionPoolState Empty = new PostgresSqlConnectionPoolState();

    /**
     * Cluster ID.
     * 
     */
    @Import(name="clusterId")
    private @Nullable Output clusterId;

    /**
     * @return Cluster ID.
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

    /**
     * Database ID for a database that belongs to the Database cluster given above.
     * 
     */
    @Import(name="databaseId")
    private @Nullable Output databaseId;

    /**
     * @return Database ID for a database that belongs to the Database cluster given above.
     * 
     */
    public Optional> databaseId() {
        return Optional.ofNullable(this.databaseId);
    }

    /**
     * Connection mode to the connection pool
     * Available modes:
     * 
     */
    @Import(name="mode")
    private @Nullable Output mode;

    /**
     * @return Connection mode to the connection pool
     * Available modes:
     * 
     */
    public Optional> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * Name of the connection pool.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the connection pool.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Port of the connection pool.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return Port of the connection pool.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * Size of the connection pool.
     * 
     */
    @Import(name="size")
    private @Nullable Output size;

    /**
     * @return Size of the connection pool.
     * 
     */
    public Optional> size() {
        return Optional.ofNullable(this.size);
    }

    /**
     * Ssl connection mode for the pool.
     * 
     */
    @Import(name="sslMode")
    private @Nullable Output sslMode;

    /**
     * @return Ssl connection mode for the pool.
     * 
     */
    public Optional> sslMode() {
        return Optional.ofNullable(this.sslMode);
    }

    /**
     * Connection URI to the pool.
     * 
     */
    @Import(name="uri")
    private @Nullable Output uri;

    /**
     * @return Connection URI to the pool.
     * 
     */
    public Optional> uri() {
        return Optional.ofNullable(this.uri);
    }

    /**
     * Database user authorized to connect to the pool, if none all the users are allowed.
     * 
     */
    @Import(name="userId")
    private @Nullable Output userId;

    /**
     * @return Database user authorized to connect to the pool, if none all the users are allowed.
     * 
     */
    public Optional> userId() {
        return Optional.ofNullable(this.userId);
    }

    private PostgresSqlConnectionPoolState() {}

    private PostgresSqlConnectionPoolState(PostgresSqlConnectionPoolState $) {
        this.clusterId = $.clusterId;
        this.databaseId = $.databaseId;
        this.mode = $.mode;
        this.name = $.name;
        this.port = $.port;
        this.serviceName = $.serviceName;
        this.size = $.size;
        this.sslMode = $.sslMode;
        this.uri = $.uri;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private PostgresSqlConnectionPoolState $;

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

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

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @param databaseId Database ID for a database that belongs to the Database cluster given above.
         * 
         * @return builder
         * 
         */
        public Builder databaseId(@Nullable Output databaseId) {
            $.databaseId = databaseId;
            return this;
        }

        /**
         * @param databaseId Database ID for a database that belongs to the Database cluster given above.
         * 
         * @return builder
         * 
         */
        public Builder databaseId(String databaseId) {
            return databaseId(Output.of(databaseId));
        }

        /**
         * @param mode Connection mode to the connection pool
         * Available modes:
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Connection mode to the connection pool
         * Available modes:
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param name Name of the connection pool.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the connection pool.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param port Port of the connection pool.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port Port of the connection pool.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param size Size of the connection pool.
         * 
         * @return builder
         * 
         */
        public Builder size(@Nullable Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size Size of the connection pool.
         * 
         * @return builder
         * 
         */
        public Builder size(Integer size) {
            return size(Output.of(size));
        }

        /**
         * @param sslMode Ssl connection mode for the pool.
         * 
         * @return builder
         * 
         */
        public Builder sslMode(@Nullable Output sslMode) {
            $.sslMode = sslMode;
            return this;
        }

        /**
         * @param sslMode Ssl connection mode for the pool.
         * 
         * @return builder
         * 
         */
        public Builder sslMode(String sslMode) {
            return sslMode(Output.of(sslMode));
        }

        /**
         * @param uri Connection URI to the pool.
         * 
         * @return builder
         * 
         */
        public Builder uri(@Nullable Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri Connection URI to the pool.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        /**
         * @param userId Database user authorized to connect to the pool, if none all the users are allowed.
         * 
         * @return builder
         * 
         */
        public Builder userId(@Nullable Output userId) {
            $.userId = userId;
            return this;
        }

        /**
         * @param userId Database user authorized to connect to the pool, if none all the users are allowed.
         * 
         * @return builder
         * 
         */
        public Builder userId(String userId) {
            return userId(Output.of(userId));
        }

        public PostgresSqlConnectionPoolState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy