com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerApprovalConfigArgs.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.TriggerApprovalConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property approvalRequired Whether or not approval is needed. If this is set on a build, it will become pending when run,
* and will need to be explicitly approved to start.
*/
public data class TriggerApprovalConfigArgs(
public val approvalRequired: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerApprovalConfigArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerApprovalConfigArgs.builder()
.approvalRequired(approvalRequired?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerApprovalConfigArgs].
*/
@PulumiTagMarker
public class TriggerApprovalConfigArgsBuilder internal constructor() {
private var approvalRequired: Output? = null
/**
* @param value Whether or not approval is needed. If this is set on a build, it will become pending when run,
* and will need to be explicitly approved to start.
*/
@JvmName("pjugvanaqhtrghik")
public suspend fun approvalRequired(`value`: Output) {
this.approvalRequired = value
}
/**
* @param value Whether or not approval is needed. If this is set on a build, it will become pending when run,
* and will need to be explicitly approved to start.
*/
@JvmName("bbvxocjayvgtkmyp")
public suspend fun approvalRequired(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.approvalRequired = mapped
}
internal fun build(): TriggerApprovalConfigArgs = TriggerApprovalConfigArgs(
approvalRequired = approvalRequired,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy