![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.containerregistry.kotlin.inputs.SourceTriggerArgs.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.SourceTriggerArgs.builder
import com.pulumi.azurenative.containerregistry.kotlin.enums.SourceTriggerEvent
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The properties of a source based trigger.
* @property name The name of the trigger.
* @property sourceRepository The properties that describes the source(code) for the task.
* @property sourceTriggerEvents The source event corresponding to the trigger.
* @property status The current status of trigger.
*/
public data class SourceTriggerArgs(
public val name: Output,
public val sourceRepository: Output,
public val sourceTriggerEvents: Output>>,
public val status: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.SourceTriggerArgs =
com.pulumi.azurenative.containerregistry.inputs.SourceTriggerArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.sourceRepository(sourceRepository.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sourceTriggerEvents(
sourceTriggerEvents.applyValue({ args0 ->
args0.map({ args0 ->
args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
})
}),
)
.status(
status?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [SourceTriggerArgs].
*/
@PulumiTagMarker
public class SourceTriggerArgsBuilder internal constructor() {
private var name: Output? = null
private var sourceRepository: Output? = null
private var sourceTriggerEvents: Output>>? = null
private var status: Output>? = null
/**
* @param value The name of the trigger.
*/
@JvmName("xrhlsbpetevoyfde")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The properties that describes the source(code) for the task.
*/
@JvmName("gsyekrtuoeajmwqn")
public suspend fun sourceRepository(`value`: Output) {
this.sourceRepository = value
}
/**
* @param value The source event corresponding to the trigger.
*/
@JvmName("aiqwtjeiweooqdbt")
public suspend fun sourceTriggerEvents(`value`: Output>>) {
this.sourceTriggerEvents = value
}
@JvmName("eysacdfvwsbrjqpj")
public suspend fun sourceTriggerEvents(vararg values: Output>) {
this.sourceTriggerEvents = Output.all(values.asList())
}
/**
* @param values The source event corresponding to the trigger.
*/
@JvmName("gpglctchcihhnfif")
public suspend fun sourceTriggerEvents(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy