![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.documentdb.kotlin.inputs.SqlTriggerResourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.documentdb.kotlin.inputs
import com.pulumi.azurenative.documentdb.inputs.SqlTriggerResourceArgs.builder
import com.pulumi.azurenative.documentdb.kotlin.enums.TriggerOperation
import com.pulumi.azurenative.documentdb.kotlin.enums.TriggerType
import com.pulumi.core.Either
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Cosmos DB SQL trigger resource object
* @property body Body of the Trigger
* @property id Name of the Cosmos DB SQL trigger
* @property triggerOperation The operation the trigger is associated with
* @property triggerType Type of the Trigger
*/
public data class SqlTriggerResourceArgs(
public val body: Output? = null,
public val id: Output,
public val triggerOperation: Output>? = null,
public val triggerType: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.documentdb.inputs.SqlTriggerResourceArgs =
com.pulumi.azurenative.documentdb.inputs.SqlTriggerResourceArgs.builder()
.body(body?.applyValue({ args0 -> args0 }))
.id(id.applyValue({ args0 -> args0 }))
.triggerOperation(
triggerOperation?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.triggerType(
triggerType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [SqlTriggerResourceArgs].
*/
@PulumiTagMarker
public class SqlTriggerResourceArgsBuilder internal constructor() {
private var body: Output? = null
private var id: Output? = null
private var triggerOperation: Output>? = null
private var triggerType: Output>? = null
/**
* @param value Body of the Trigger
*/
@JvmName("ptdaaskyybtedrnf")
public suspend fun body(`value`: Output) {
this.body = value
}
/**
* @param value Name of the Cosmos DB SQL trigger
*/
@JvmName("qgwscborhcyrkple")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The operation the trigger is associated with
*/
@JvmName("syugwhiikybvrxpt")
public suspend fun triggerOperation(`value`: Output>) {
this.triggerOperation = value
}
/**
* @param value Type of the Trigger
*/
@JvmName("dwpaicqeygfeukpy")
public suspend fun triggerType(`value`: Output>) {
this.triggerType = value
}
/**
* @param value Body of the Trigger
*/
@JvmName("gqtcuvsnabhvonnt")
public suspend fun body(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.body = mapped
}
/**
* @param value Name of the Cosmos DB SQL trigger
*/
@JvmName("chrckcsxmtwwymxi")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The operation the trigger is associated with
*/
@JvmName("yvaqgnpknwhfnauc")
public suspend fun triggerOperation(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.triggerOperation = mapped
}
/**
* @param value The operation the trigger is associated with
*/
@JvmName("sekjkcawunscnvld")
public fun triggerOperation(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.triggerOperation = mapped
}
/**
* @param value The operation the trigger is associated with
*/
@JvmName("xavedskfrtxtiyxe")
public fun triggerOperation(`value`: TriggerOperation) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.triggerOperation = mapped
}
/**
* @param value Type of the Trigger
*/
@JvmName("rofnbveevronyqrh")
public suspend fun triggerType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.triggerType = mapped
}
/**
* @param value Type of the Trigger
*/
@JvmName("pbwmcbxcarebdwau")
public fun triggerType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.triggerType = mapped
}
/**
* @param value Type of the Trigger
*/
@JvmName("crlmpfdcmhnitdyj")
public fun triggerType(`value`: TriggerType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.triggerType = mapped
}
internal fun build(): SqlTriggerResourceArgs = SqlTriggerResourceArgs(
body = body,
id = id ?: throw PulumiNullFieldException("id"),
triggerOperation = triggerOperation,
triggerType = triggerType,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy