com.pulumi.awsnative.events.kotlin.inputs.ConnectionParameterArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.events.kotlin.inputs
import com.pulumi.awsnative.events.inputs.ConnectionParameterArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property isValueSecret Specifies whether the value is secret.
* @property key The key for a query string parameter.
* @property value The value associated with the key for the query string parameter.
*/
public data class ConnectionParameterArgs(
public val isValueSecret: Output? = null,
public val key: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.events.inputs.ConnectionParameterArgs =
com.pulumi.awsnative.events.inputs.ConnectionParameterArgs.builder()
.isValueSecret(isValueSecret?.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionParameterArgs].
*/
@PulumiTagMarker
public class ConnectionParameterArgsBuilder internal constructor() {
private var isValueSecret: Output? = null
private var key: Output? = null
private var `value`: Output? = null
/**
* @param value Specifies whether the value is secret.
*/
@JvmName("xdtmqxwvhojnsocb")
public suspend fun isValueSecret(`value`: Output) {
this.isValueSecret = value
}
/**
* @param value The key for a query string parameter.
*/
@JvmName("stiynpnsdxdrbrmm")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The value associated with the key for the query string parameter.
*/
@JvmName("enamuudbauaxndpv")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Specifies whether the value is secret.
*/
@JvmName("jslnlyftthbpgqtj")
public suspend fun isValueSecret(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isValueSecret = mapped
}
/**
* @param value The key for a query string parameter.
*/
@JvmName("lbgpviudgqjyykxv")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value The value associated with the key for the query string parameter.
*/
@JvmName("mmtyuvwgtruilgra")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): ConnectionParameterArgs = ConnectionParameterArgs(
isValueSecret = isValueSecret,
key = key ?: throw PulumiNullFieldException("key"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}