com.pulumi.awsnative.codepipeline.kotlin.inputs.PipelineTriggerDeclarationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.awsnative.codepipeline.kotlin.inputs
import com.pulumi.awsnative.codepipeline.inputs.PipelineTriggerDeclarationArgs.builder
import com.pulumi.awsnative.codepipeline.kotlin.enums.PipelineTriggerDeclarationProviderType
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.
* @property gitConfiguration Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
* @property providerType The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
*/
public data class PipelineTriggerDeclarationArgs(
public val gitConfiguration: Output? = null,
public val providerType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.codepipeline.inputs.PipelineTriggerDeclarationArgs =
com.pulumi.awsnative.codepipeline.inputs.PipelineTriggerDeclarationArgs.builder()
.gitConfiguration(gitConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.providerType(providerType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [PipelineTriggerDeclarationArgs].
*/
@PulumiTagMarker
public class PipelineTriggerDeclarationArgsBuilder internal constructor() {
private var gitConfiguration: Output? = null
private var providerType: Output? = null
/**
* @param value Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
*/
@JvmName("aldxsjoohtapnjpv")
public suspend fun gitConfiguration(`value`: Output) {
this.gitConfiguration = value
}
/**
* @param value The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
*/
@JvmName("mlhbthsewypybdkn")
public suspend fun providerType(`value`: Output) {
this.providerType = value
}
/**
* @param value Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
*/
@JvmName("ihcyidbgjntrdrvv")
public suspend fun gitConfiguration(`value`: PipelineGitConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gitConfiguration = mapped
}
/**
* @param argument Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
*/
@JvmName("cficlmbbydruqtqm")
public suspend fun gitConfiguration(argument: suspend PipelineGitConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = PipelineGitConfigurationArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.gitConfiguration = mapped
}
/**
* @param value The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
*/
@JvmName("vepqrxcdijdbpnot")
public suspend fun providerType(`value`: PipelineTriggerDeclarationProviderType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.providerType = mapped
}
internal fun build(): PipelineTriggerDeclarationArgs = PipelineTriggerDeclarationArgs(
gitConfiguration = gitConfiguration,
providerType = providerType ?: throw PulumiNullFieldException("providerType"),
)
}