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

com.pulumi.gcp.datastream.kotlin.inputs.ConnectionProfileOracleProfileArgs.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.13.1.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.ConnectionProfileOracleProfileArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property connectionAttributes Connection string attributes
 * @property databaseService Database for the Oracle connection.
 * @property hostname Hostname for the Oracle connection.
 * @property password Password for the Oracle connection.
 * **Note**: This property is sensitive and will not be displayed in the plan.
 * @property port Port for the Oracle connection.
 * @property username Username for the Oracle connection.
 */
public data class ConnectionProfileOracleProfileArgs(
    public val connectionAttributes: Output>? = null,
    public val databaseService: 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.ConnectionProfileOracleProfileArgs =
        com.pulumi.gcp.datastream.inputs.ConnectionProfileOracleProfileArgs.builder()
            .connectionAttributes(
                connectionAttributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .databaseService(databaseService.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 [ConnectionProfileOracleProfileArgs].
 */
@PulumiTagMarker
public class ConnectionProfileOracleProfileArgsBuilder internal constructor() {
    private var connectionAttributes: Output>? = null

    private var databaseService: Output? = null

    private var hostname: Output? = null

    private var password: Output? = null

    private var port: Output? = null

    private var username: Output? = null

    /**
     * @param value Connection string attributes
     */
    @JvmName("eovdddafbxbrtjdf")
    public suspend fun connectionAttributes(`value`: Output>) {
        this.connectionAttributes = value
    }

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

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

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

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

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

    /**
     * @param value Connection string attributes
     */
    @JvmName("lhkpsisgftdwivkn")
    public suspend fun connectionAttributes(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionAttributes = mapped
    }

    /**
     * @param values Connection string attributes
     */
    @JvmName("kjetotkelmfbgfqc")
    public fun connectionAttributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectionAttributes = mapped
    }

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

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

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

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

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

    internal fun build(): ConnectionProfileOracleProfileArgs = ConnectionProfileOracleProfileArgs(
        connectionAttributes = connectionAttributes,
        databaseService = databaseService ?: throw PulumiNullFieldException("databaseService"),
        hostname = hostname ?: throw PulumiNullFieldException("hostname"),
        password = password ?: throw PulumiNullFieldException("password"),
        port = port,
        username = username ?: throw PulumiNullFieldException("username"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy