![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.container.kotlin.inputs.ClusterNotificationConfigArgs.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.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNotificationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property pubsub The pubsub config for the cluster's upgrade notifications.
*/
public data class ClusterNotificationConfigArgs(
public val pubsub: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNotificationConfigArgs =
com.pulumi.gcp.container.inputs.ClusterNotificationConfigArgs.builder()
.pubsub(pubsub.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ClusterNotificationConfigArgs].
*/
@PulumiTagMarker
public class ClusterNotificationConfigArgsBuilder internal constructor() {
private var pubsub: Output? = null
/**
* @param value The pubsub config for the cluster's upgrade notifications.
*/
@JvmName("mncqhxpbxmejjhpu")
public suspend fun pubsub(`value`: Output) {
this.pubsub = value
}
/**
* @param value The pubsub config for the cluster's upgrade notifications.
*/
@JvmName("vvnjbxljyitjtxik")
public suspend fun pubsub(`value`: ClusterNotificationConfigPubsubArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.pubsub = mapped
}
/**
* @param argument The pubsub config for the cluster's upgrade notifications.
*/
@JvmName("kfdevaelpyvxwjdq")
public suspend fun pubsub(argument: suspend ClusterNotificationConfigPubsubArgsBuilder.() -> Unit) {
val toBeMapped = ClusterNotificationConfigPubsubArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.pubsub = mapped
}
internal fun build(): ClusterNotificationConfigArgs = ClusterNotificationConfigArgs(
pubsub = pubsub ?: throw PulumiNullFieldException("pubsub"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy