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

com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerRepositoryEventConfigPushArgs.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: 8.10.0.0
Show newest version
@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.TriggerRepositoryEventConfigPushArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property branch Regex of branches to match.  Specify only one of branch or tag.
 * @property invertRegex When true, only trigger a build if the revision regex does NOT match the gitRef regex.
 * @property tag Regex of tags to match.  Specify only one of branch or tag.
 */
public data class TriggerRepositoryEventConfigPushArgs(
    public val branch: Output? = null,
    public val invertRegex: Output? = null,
    public val tag: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerRepositoryEventConfigPushArgs =
        com.pulumi.gcp.cloudbuild.inputs.TriggerRepositoryEventConfigPushArgs.builder()
            .branch(branch?.applyValue({ args0 -> args0 }))
            .invertRegex(invertRegex?.applyValue({ args0 -> args0 }))
            .tag(tag?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TriggerRepositoryEventConfigPushArgs].
 */
@PulumiTagMarker
public class TriggerRepositoryEventConfigPushArgsBuilder internal constructor() {
    private var branch: Output? = null

    private var invertRegex: Output? = null

    private var tag: Output? = null

    /**
     * @param value Regex of branches to match.  Specify only one of branch or tag.
     */
    @JvmName("xjptmxueuxheijsb")
    public suspend fun branch(`value`: Output) {
        this.branch = value
    }

    /**
     * @param value When true, only trigger a build if the revision regex does NOT match the gitRef regex.
     */
    @JvmName("qnscyvdjchqxtoto")
    public suspend fun invertRegex(`value`: Output) {
        this.invertRegex = value
    }

    /**
     * @param value Regex of tags to match.  Specify only one of branch or tag.
     */
    @JvmName("utlvqvwwlsaoxbde")
    public suspend fun tag(`value`: Output) {
        this.tag = value
    }

    /**
     * @param value Regex of branches to match.  Specify only one of branch or tag.
     */
    @JvmName("widwanwdomomqdnp")
    public suspend fun branch(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.branch = mapped
    }

    /**
     * @param value When true, only trigger a build if the revision regex does NOT match the gitRef regex.
     */
    @JvmName("spmjnswpkanarrui")
    public suspend fun invertRegex(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invertRegex = mapped
    }

    /**
     * @param value Regex of tags to match.  Specify only one of branch or tag.
     */
    @JvmName("eoxbeeehdiwsvbtn")
    public suspend fun tag(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tag = mapped
    }

    internal fun build(): TriggerRepositoryEventConfigPushArgs = TriggerRepositoryEventConfigPushArgs(
        branch = branch,
        invertRegex = invertRegex,
        tag = tag,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy