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

com.pulumi.aws.codepipeline.kotlin.inputs.PipelineTriggerGitConfigurationPushArgs.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.PipelineTriggerGitConfigurationPushArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property branches The field that specifies to filter on branches for the push trigger configuration. A `branches` block is documented below.
 * @property filePaths The field that specifies to filter on file paths for the push trigger configuration. A `file_paths` block is documented below.
 * @property tags The field that contains the details for the Git tags trigger configuration. A `tags` block is documented below.
 */
public data class PipelineTriggerGitConfigurationPushArgs(
    public val branches: Output? = null,
    public val filePaths: Output? = null,
    public val tags: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.codepipeline.inputs.PipelineTriggerGitConfigurationPushArgs = com.pulumi.aws.codepipeline.inputs.PipelineTriggerGitConfigurationPushArgs.builder()
        .branches(branches?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .filePaths(filePaths?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .tags(tags?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [PipelineTriggerGitConfigurationPushArgs].
 */
@PulumiTagMarker
public class PipelineTriggerGitConfigurationPushArgsBuilder internal constructor() {
    private var branches: Output? = null

    private var filePaths: Output? = null

    private var tags: Output? = null

    /**
     * @param value The field that specifies to filter on branches for the push trigger configuration. A `branches` block is documented below.
     */
    @JvmName("wahbpyialthpmcqd")
    public suspend fun branches(`value`: Output) {
        this.branches = value
    }

    /**
     * @param value The field that specifies to filter on file paths for the push trigger configuration. A `file_paths` block is documented below.
     */
    @JvmName("dlquypueohviatmp")
    public suspend fun filePaths(`value`: Output) {
        this.filePaths = value
    }

    /**
     * @param value The field that contains the details for the Git tags trigger configuration. A `tags` block is documented below.
     */
    @JvmName("ijuryjmtwqcyklnk")
    public suspend fun tags(`value`: Output) {
        this.tags = value
    }

    /**
     * @param value The field that specifies to filter on branches for the push trigger configuration. A `branches` block is documented below.
     */
    @JvmName("syquekyjjjaoljeq")
    public suspend fun branches(`value`: PipelineTriggerGitConfigurationPushBranchesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.branches = mapped
    }

    /**
     * @param argument The field that specifies to filter on branches for the push trigger configuration. A `branches` block is documented below.
     */
    @JvmName("gurutviykokebqsb")
    public suspend fun branches(argument: suspend PipelineTriggerGitConfigurationPushBranchesArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineTriggerGitConfigurationPushBranchesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.branches = mapped
    }

    /**
     * @param value The field that specifies to filter on file paths for the push trigger configuration. A `file_paths` block is documented below.
     */
    @JvmName("umlrmtvgnbcjprai")
    public suspend fun filePaths(`value`: PipelineTriggerGitConfigurationPushFilePathsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filePaths = mapped
    }

    /**
     * @param argument The field that specifies to filter on file paths for the push trigger configuration. A `file_paths` block is documented below.
     */
    @JvmName("aoaubhaquausgfrt")
    public suspend fun filePaths(argument: suspend PipelineTriggerGitConfigurationPushFilePathsArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineTriggerGitConfigurationPushFilePathsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.filePaths = mapped
    }

    /**
     * @param value The field that contains the details for the Git tags trigger configuration. A `tags` block is documented below.
     */
    @JvmName("aukvyqitoxqgaxma")
    public suspend fun tags(`value`: PipelineTriggerGitConfigurationPushTagsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The field that contains the details for the Git tags trigger configuration. A `tags` block is documented below.
     */
    @JvmName("xmwssmkoejhsnipl")
    public suspend fun tags(argument: suspend PipelineTriggerGitConfigurationPushTagsArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineTriggerGitConfigurationPushTagsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    internal fun build(): PipelineTriggerGitConfigurationPushArgs =
        PipelineTriggerGitConfigurationPushArgs(
            branches = branches,
            filePaths = filePaths,
            tags = tags,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy