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

com.pulumi.gcp.datastream.kotlin.inputs.ConnectionProfilePostgresqlProfileArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.datastream.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.datastream.inputs.ConnectionProfilePostgresqlProfileArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property database Database for the PostgreSQL connection.
 * @property hostname Hostname for the PostgreSQL connection.
 * @property password Password for the PostgreSQL connection.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property port Port for the PostgreSQL connection.
 * @property username Username for the PostgreSQL connection.
 */
public data class ConnectionProfilePostgresqlProfileArgs(
    public val database: Output,
    public val hostname: Output,
    public val password: Output,
    public val port: Output? = null,
    public val username: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.datastream.inputs.ConnectionProfilePostgresqlProfileArgs =
        com.pulumi.gcp.datastream.inputs.ConnectionProfilePostgresqlProfileArgs.builder()
            .database(database.applyValue({ args0 -> args0 }))
            .hostname(hostname.applyValue({ args0 -> args0 }))
            .password(password.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 }))
            .username(username.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectionProfilePostgresqlProfileArgs].
 */
@PulumiTagMarker
public class ConnectionProfilePostgresqlProfileArgsBuilder internal constructor() {
    private var database: Output? = null

    private var hostname: Output? = null

    private var password: Output? = null

    private var port: Output? = null

    private var username: Output? = null

    /**
     * @param value Database for the PostgreSQL connection.
     */
    @JvmName("tekrdqjwgctdoulu")
    public suspend fun database(`value`: Output) {
        this.database = value
    }

    /**
     * @param value Hostname for the PostgreSQL connection.
     */
    @JvmName("sjvyqiwgepbsgned")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value Password for the PostgreSQL connection.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("ggoxvjgcvdptgtwg")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value Port for the PostgreSQL connection.
     */
    @JvmName("ctqxplqhflfeftgd")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value Username for the PostgreSQL connection.
     */
    @JvmName("ygubcocoyubyfnhw")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Database for the PostgreSQL connection.
     */
    @JvmName("huduevmxivursbxx")
    public suspend fun database(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.database = mapped
    }

    /**
     * @param value Hostname for the PostgreSQL connection.
     */
    @JvmName("vdgoireocufdhgiv")
    public suspend fun hostname(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    /**
     * @param value Password for the PostgreSQL connection.
     * **Note**: This property is sensitive and will not be displayed in the plan.
     */
    @JvmName("ufefbyqkvtatspys")
    public suspend fun password(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value Port for the PostgreSQL connection.
     */
    @JvmName("eyrodeqvuhtwcsbe")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value Username for the PostgreSQL connection.
     */
    @JvmName("iikopxmcvtinemmn")
    public suspend fun username(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.username = mapped
    }

    internal fun build(): ConnectionProfilePostgresqlProfileArgs =
        ConnectionProfilePostgresqlProfileArgs(
            database = database ?: throw PulumiNullFieldException("database"),
            hostname = hostname ?: throw PulumiNullFieldException("hostname"),
            password = password ?: throw PulumiNullFieldException("password"),
            port = port,
            username = username ?: throw PulumiNullFieldException("username"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy