All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.codepipeline.kotlin.inputs.PipelineTriggerGitConfigurationPushBranchesArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.codepipeline.kotlin.inputs

import com.pulumi.aws.codepipeline.inputs.PipelineTriggerGitConfigurationPushBranchesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property excludes A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
 * @property includes A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
 */
public data class PipelineTriggerGitConfigurationPushBranchesArgs(
    public val excludes: Output>? = null,
    public val includes: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.codepipeline.inputs.PipelineTriggerGitConfigurationPushBranchesArgs =
        com.pulumi.aws.codepipeline.inputs.PipelineTriggerGitConfigurationPushBranchesArgs.builder()
            .excludes(excludes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .includes(includes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [PipelineTriggerGitConfigurationPushBranchesArgs].
 */
@PulumiTagMarker
public class PipelineTriggerGitConfigurationPushBranchesArgsBuilder internal constructor() {
    private var excludes: Output>? = null

    private var includes: Output>? = null

    /**
     * @param value A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     */
    @JvmName("hjrhxeatqnnvofxt")
    public suspend fun excludes(`value`: Output>) {
        this.excludes = value
    }

    @JvmName("gvmnumlxmonveaxm")
    public suspend fun excludes(vararg values: Output) {
        this.excludes = Output.all(values.asList())
    }

    /**
     * @param values A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     */
    @JvmName("nertgtjpvmtwxceh")
    public suspend fun excludes(values: List>) {
        this.excludes = Output.all(values)
    }

    /**
     * @param value A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
     */
    @JvmName("ddfygagrcqhgnhsv")
    public suspend fun includes(`value`: Output>) {
        this.includes = value
    }

    @JvmName("ycknqgnauhshocaa")
    public suspend fun includes(vararg values: Output) {
        this.includes = Output.all(values.asList())
    }

    /**
     * @param values A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
     */
    @JvmName("ysbaqaxnukgujxhf")
    public suspend fun includes(values: List>) {
        this.includes = Output.all(values)
    }

    /**
     * @param value A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     */
    @JvmName("opmxnlliurvralvr")
    public suspend fun excludes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param values A list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
     */
    @JvmName("ggqjnxuxsbhnxnvo")
    public suspend fun excludes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludes = mapped
    }

    /**
     * @param value A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
     */
    @JvmName("ldserxauojjnrhte")
    public suspend fun includes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    /**
     * @param values A list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
     */
    @JvmName("pawtujydscwolprf")
    public suspend fun includes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includes = mapped
    }

    internal fun build(): PipelineTriggerGitConfigurationPushBranchesArgs =
        PipelineTriggerGitConfigurationPushBranchesArgs(
            excludes = excludes,
            includes = includes,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy