com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerPubsubConfigArgs.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.TriggerPubsubConfigArgs.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 serviceAccountEmail Service account that will make the push request.
* @property state (Output)
* Potential issues with the underlying Pub/Sub subscription configuration.
* Only populated on get requests.
* @property subscription (Output)
* Output only. Name of the subscription.
* @property topic The name of the topic from which this subscription is receiving messages.
*/
public data class TriggerPubsubConfigArgs(
public val serviceAccountEmail: Output? = null,
public val state: Output? = null,
public val subscription: Output? = null,
public val topic: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerPubsubConfigArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerPubsubConfigArgs.builder()
.serviceAccountEmail(serviceAccountEmail?.applyValue({ args0 -> args0 }))
.state(state?.applyValue({ args0 -> args0 }))
.subscription(subscription?.applyValue({ args0 -> args0 }))
.topic(topic.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerPubsubConfigArgs].
*/
@PulumiTagMarker
public class TriggerPubsubConfigArgsBuilder internal constructor() {
private var serviceAccountEmail: Output? = null
private var state: Output? = null
private var subscription: Output? = null
private var topic: Output? = null
/**
* @param value Service account that will make the push request.
*/
@JvmName("inderlscunfeshku")
public suspend fun serviceAccountEmail(`value`: Output) {
this.serviceAccountEmail = value
}
/**
* @param value (Output)
* Potential issues with the underlying Pub/Sub subscription configuration.
* Only populated on get requests.
*/
@JvmName("vsgwgwtcqhrqwonc")
public suspend fun state(`value`: Output) {
this.state = value
}
/**
* @param value (Output)
* Output only. Name of the subscription.
*/
@JvmName("pgxxdvvwjwcxxyif")
public suspend fun subscription(`value`: Output) {
this.subscription = value
}
/**
* @param value The name of the topic from which this subscription is receiving messages.
*/
@JvmName("xmuxjhatbskrrltp")
public suspend fun topic(`value`: Output) {
this.topic = value
}
/**
* @param value Service account that will make the push request.
*/
@JvmName("bvqudpppeslqriwa")
public suspend fun serviceAccountEmail(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceAccountEmail = mapped
}
/**
* @param value (Output)
* Potential issues with the underlying Pub/Sub subscription configuration.
* Only populated on get requests.
*/
@JvmName("gkqdmhoqxbdtcbgm")
public suspend fun state(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value (Output)
* Output only. Name of the subscription.
*/
@JvmName("wcdskrwjlcrenths")
public suspend fun subscription(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subscription = mapped
}
/**
* @param value The name of the topic from which this subscription is receiving messages.
*/
@JvmName("xabujbmrrxpluyhp")
public suspend fun topic(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topic = mapped
}
internal fun build(): TriggerPubsubConfigArgs = TriggerPubsubConfigArgs(
serviceAccountEmail = serviceAccountEmail,
state = state,
subscription = subscription,
topic = topic ?: throw PulumiNullFieldException("topic"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy