com.pulumi.aws.quicksight.kotlin.inputs.DataSourceParametersPostgresqlArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.quicksight.kotlin.inputs
import com.pulumi.aws.quicksight.inputs.DataSourceParametersPostgresqlArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 The database to which to connect.
* @property host The host to which to connect.
* @property port The port to which to connect.
*/
public data class DataSourceParametersPostgresqlArgs(
public val database: Output,
public val host: Output,
public val port: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.quicksight.inputs.DataSourceParametersPostgresqlArgs =
com.pulumi.aws.quicksight.inputs.DataSourceParametersPostgresqlArgs.builder()
.database(database.applyValue({ args0 -> args0 }))
.host(host.applyValue({ args0 -> args0 }))
.port(port.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DataSourceParametersPostgresqlArgs].
*/
@PulumiTagMarker
public class DataSourceParametersPostgresqlArgsBuilder internal constructor() {
private var database: Output? = null
private var host: Output? = null
private var port: Output? = null
/**
* @param value The database to which to connect.
*/
@JvmName("empwkabtoisapxql")
public suspend fun database(`value`: Output) {
this.database = value
}
/**
* @param value The host to which to connect.
*/
@JvmName("xbneixkngsrfhoyl")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value The port to which to connect.
*/
@JvmName("surmewkgtxdirpeo")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value The database to which to connect.
*/
@JvmName("oigbnbkrwhthnqgr")
public suspend fun database(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.database = mapped
}
/**
* @param value The host to which to connect.
*/
@JvmName("ruwqehivxpiwtkag")
public suspend fun host(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value The port to which to connect.
*/
@JvmName("oaalutcefnmdhtms")
public suspend fun port(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.port = mapped
}
internal fun build(): DataSourceParametersPostgresqlArgs = DataSourceParametersPostgresqlArgs(
database = database ?: throw PulumiNullFieldException("database"),
host = host ?: throw PulumiNullFieldException("host"),
port = port ?: throw PulumiNullFieldException("port"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy