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

com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildSourceArgs.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.12.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.TriggerBuildSourceArgs.builder
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 repoSource Location of the source in a Google Cloud Source Repository.
 * Structure is documented below.
 * @property storageSource Location of the source in an archive file in Google Cloud Storage.
 * Structure is documented below.
 */
public data class TriggerBuildSourceArgs(
    public val repoSource: Output? = null,
    public val storageSource: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildSourceArgs =
        com.pulumi.gcp.cloudbuild.inputs.TriggerBuildSourceArgs.builder()
            .repoSource(repoSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .storageSource(storageSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TriggerBuildSourceArgs].
 */
@PulumiTagMarker
public class TriggerBuildSourceArgsBuilder internal constructor() {
    private var repoSource: Output? = null

    private var storageSource: Output? = null

    /**
     * @param value Location of the source in a Google Cloud Source Repository.
     * Structure is documented below.
     */
    @JvmName("nfhltmejwflnclqt")
    public suspend fun repoSource(`value`: Output) {
        this.repoSource = value
    }

    /**
     * @param value Location of the source in an archive file in Google Cloud Storage.
     * Structure is documented below.
     */
    @JvmName("brefoxqtbckyqqca")
    public suspend fun storageSource(`value`: Output) {
        this.storageSource = value
    }

    /**
     * @param value Location of the source in a Google Cloud Source Repository.
     * Structure is documented below.
     */
    @JvmName("dkupgqacsxkhomdf")
    public suspend fun repoSource(`value`: TriggerBuildSourceRepoSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repoSource = mapped
    }

    /**
     * @param argument Location of the source in a Google Cloud Source Repository.
     * Structure is documented below.
     */
    @JvmName("lrxlkvbnvkfkrsef")
    public suspend fun repoSource(argument: suspend TriggerBuildSourceRepoSourceArgsBuilder.() -> Unit) {
        val toBeMapped = TriggerBuildSourceRepoSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.repoSource = mapped
    }

    /**
     * @param value Location of the source in an archive file in Google Cloud Storage.
     * Structure is documented below.
     */
    @JvmName("acmudmenkbqpsvhq")
    public suspend fun storageSource(`value`: TriggerBuildSourceStorageSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageSource = mapped
    }

    /**
     * @param argument Location of the source in an archive file in Google Cloud Storage.
     * Structure is documented below.
     */
    @JvmName("llsbnpkvionfbavy")
    public suspend fun storageSource(argument: suspend TriggerBuildSourceStorageSourceArgsBuilder.() -> Unit) {
        val toBeMapped = TriggerBuildSourceStorageSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.storageSource = mapped
    }

    internal fun build(): TriggerBuildSourceArgs = TriggerBuildSourceArgs(
        repoSource = repoSource,
        storageSource = storageSource,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy