com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerRepositoryEventConfigArgs.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.TriggerRepositoryEventConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property pullRequest Contains filter properties for matching Pull Requests.
* Structure is documented below.
* @property push Contains filter properties for matching git pushes.
* Structure is documented below.
* @property repository The resource name of the Repo API resource.
*/
public data class TriggerRepositoryEventConfigArgs(
public val pullRequest: Output? = null,
public val push: Output? = null,
public val repository: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerRepositoryEventConfigArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerRepositoryEventConfigArgs.builder()
.pullRequest(pullRequest?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.push(push?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.repository(repository?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerRepositoryEventConfigArgs].
*/
@PulumiTagMarker
public class TriggerRepositoryEventConfigArgsBuilder internal constructor() {
private var pullRequest: Output? = null
private var push: Output? = null
private var repository: Output? = null
/**
* @param value Contains filter properties for matching Pull Requests.
* Structure is documented below.
*/
@JvmName("bbqmmnmirfehqsjr")
public suspend fun pullRequest(`value`: Output) {
this.pullRequest = value
}
/**
* @param value Contains filter properties for matching git pushes.
* Structure is documented below.
*/
@JvmName("fbbqnsxmgfmdqvhd")
public suspend fun push(`value`: Output) {
this.push = value
}
/**
* @param value The resource name of the Repo API resource.
*/
@JvmName("uuvwyqawdosmrvtt")
public suspend fun repository(`value`: Output) {
this.repository = value
}
/**
* @param value Contains filter properties for matching Pull Requests.
* Structure is documented below.
*/
@JvmName("qgqebuveoaamncpp")
public suspend fun pullRequest(`value`: TriggerRepositoryEventConfigPullRequestArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pullRequest = mapped
}
/**
* @param argument Contains filter properties for matching Pull Requests.
* Structure is documented below.
*/
@JvmName("xcfldqsfydnuvrpd")
public suspend fun pullRequest(argument: suspend TriggerRepositoryEventConfigPullRequestArgsBuilder.() -> Unit) {
val toBeMapped = TriggerRepositoryEventConfigPullRequestArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.pullRequest = mapped
}
/**
* @param value Contains filter properties for matching git pushes.
* Structure is documented below.
*/
@JvmName("alksjcylpityxsyg")
public suspend fun push(`value`: TriggerRepositoryEventConfigPushArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.push = mapped
}
/**
* @param argument Contains filter properties for matching git pushes.
* Structure is documented below.
*/
@JvmName("rhhtnjaaykycgnmt")
public suspend fun push(argument: suspend TriggerRepositoryEventConfigPushArgsBuilder.() -> Unit) {
val toBeMapped = TriggerRepositoryEventConfigPushArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.push = mapped
}
/**
* @param value The resource name of the Repo API resource.
*/
@JvmName("umhtichrdfsjwqtj")
public suspend fun repository(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repository = mapped
}
internal fun build(): TriggerRepositoryEventConfigArgs = TriggerRepositoryEventConfigArgs(
pullRequest = pullRequest,
push = push,
repository = repository,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy