![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.containerregistry.kotlin.inputs.PipelineSourceTriggerPropertiesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.containerregistry.kotlin.inputs
import com.pulumi.azurenative.containerregistry.inputs.PipelineSourceTriggerPropertiesArgs.builder
import com.pulumi.azurenative.containerregistry.kotlin.enums.TriggerStatus
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 status The current status of the source trigger.
*/
public data class PipelineSourceTriggerPropertiesArgs(
public val status: Output>,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.PipelineSourceTriggerPropertiesArgs =
com.pulumi.azurenative.containerregistry.inputs.PipelineSourceTriggerPropertiesArgs.builder()
.status(
status.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [PipelineSourceTriggerPropertiesArgs].
*/
@PulumiTagMarker
public class PipelineSourceTriggerPropertiesArgsBuilder internal constructor() {
private var status: Output>? = null
/**
* @param value The current status of the source trigger.
*/
@JvmName("adgowfcuvpahfode")
public suspend fun status(`value`: Output>) {
this.status = value
}
/**
* @param value The current status of the source trigger.
*/
@JvmName("atxpswmbkcwvqiei")
public suspend fun status(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value The current status of the source trigger.
*/
@JvmName("ojofcencqhahvtjl")
public fun status(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
/**
* @param value The current status of the source trigger.
*/
@JvmName("uoluqsagoyorvylo")
public fun status(`value`: TriggerStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): PipelineSourceTriggerPropertiesArgs = PipelineSourceTriggerPropertiesArgs(
status = status ?: throw PulumiNullFieldException("status"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy