com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerWebhookConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.cloudbuild.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerWebhookConfigArgs.builder
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
/**
*
* @property secret Resource name for the secret required as a URL parameter.
* @property state (Output)
* Potential issues with the underlying Pub/Sub subscription configuration.
* Only populated on get requests.
*/
public data class TriggerWebhookConfigArgs(
public val secret: Output,
public val state: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerWebhookConfigArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerWebhookConfigArgs.builder()
.secret(secret.applyValue({ args0 -> args0 }))
.state(state?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerWebhookConfigArgs].
*/
@PulumiTagMarker
public class TriggerWebhookConfigArgsBuilder internal constructor() {
private var secret: Output? = null
private var state: Output? = null
/**
* @param value Resource name for the secret required as a URL parameter.
*/
@JvmName("urnwjviesojpenao")
public suspend fun secret(`value`: Output) {
this.secret = value
}
/**
* @param value (Output)
* Potential issues with the underlying Pub/Sub subscription configuration.
* Only populated on get requests.
*/
@JvmName("malkevchkovcdwtk")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value Resource name for the secret required as a URL parameter.
*/
@JvmName("mgmbidfswaqhisel")
public suspend fun secret(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.secret = mapped
}
/**
* @param value (Output)
* Potential issues with the underlying Pub/Sub subscription configuration.
* Only populated on get requests.
*/
@JvmName("klkwwdvyjcnpcihq")
public suspend fun state(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): TriggerWebhookConfigArgs = TriggerWebhookConfigArgs(
secret = secret ?: throw PulumiNullFieldException("secret"),
state = state,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy