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

com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildArtifactsObjectsArgs.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.TriggerBuildArtifactsObjectsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property location Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/".
 * Files in the workspace matching any path pattern will be uploaded to Cloud Storage with
 * this location as a prefix.
 * @property paths Path globs used to match files in the build's workspace.
 * @property timings (Output)
 * Output only. Stores timing information for pushing all artifact objects.
 * Structure is documented below.
 * The `timing` block contains:
 */
public data class TriggerBuildArtifactsObjectsArgs(
    public val location: Output? = null,
    public val paths: Output>? = null,
    public val timings: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsObjectsArgs =
        com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsObjectsArgs.builder()
            .location(location?.applyValue({ args0 -> args0 }))
            .paths(paths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .timings(
                timings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TriggerBuildArtifactsObjectsArgs].
 */
@PulumiTagMarker
public class TriggerBuildArtifactsObjectsArgsBuilder internal constructor() {
    private var location: Output? = null

    private var paths: Output>? = null

    private var timings: Output>? = null

    /**
     * @param value Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/".
     * Files in the workspace matching any path pattern will be uploaded to Cloud Storage with
     * this location as a prefix.
     */
    @JvmName("lwajlilphuyvlddv")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Path globs used to match files in the build's workspace.
     */
    @JvmName("matqadmbmwgovksm")
    public suspend fun paths(`value`: Output>) {
        this.paths = value
    }

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

    /**
     * @param values Path globs used to match files in the build's workspace.
     */
    @JvmName("ukfbtwmowoosbvmm")
    public suspend fun paths(values: List>) {
        this.paths = Output.all(values)
    }

    /**
     * @param value (Output)
     * Output only. Stores timing information for pushing all artifact objects.
     * Structure is documented below.
     * The `timing` block contains:
     */
    @JvmName("nygvuvsnqqjrwyml")
    public suspend fun timings(`value`: Output>) {
        this.timings = value
    }

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

    /**
     * @param values (Output)
     * Output only. Stores timing information for pushing all artifact objects.
     * Structure is documented below.
     * The `timing` block contains:
     */
    @JvmName("ahmfifpwdvgqskux")
    public suspend fun timings(values: List>) {
        this.timings = Output.all(values)
    }

    /**
     * @param value Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/".
     * Files in the workspace matching any path pattern will be uploaded to Cloud Storage with
     * this location as a prefix.
     */
    @JvmName("sseohwvbbgiyrbni")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Path globs used to match files in the build's workspace.
     */
    @JvmName("fwcaknrkhcglkast")
    public suspend fun paths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    /**
     * @param values Path globs used to match files in the build's workspace.
     */
    @JvmName("xptcdisppyeiogfw")
    public suspend fun paths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    /**
     * @param value (Output)
     * Output only. Stores timing information for pushing all artifact objects.
     * Structure is documented below.
     * The `timing` block contains:
     */
    @JvmName("yxqnmncmeeauchkg")
    public suspend fun timings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timings = mapped
    }

    /**
     * @param argument (Output)
     * Output only. Stores timing information for pushing all artifact objects.
     * Structure is documented below.
     * The `timing` block contains:
     */
    @JvmName("jgfycnmsaundymee")
    public suspend fun timings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TriggerBuildArtifactsObjectsTimingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.timings = mapped
    }

    /**
     * @param argument (Output)
     * Output only. Stores timing information for pushing all artifact objects.
     * Structure is documented below.
     * The `timing` block contains:
     */
    @JvmName("rvibhbqiwwwsqvef")
    public suspend fun timings(vararg argument: suspend TriggerBuildArtifactsObjectsTimingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TriggerBuildArtifactsObjectsTimingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.timings = mapped
    }

    /**
     * @param argument (Output)
     * Output only. Stores timing information for pushing all artifact objects.
     * Structure is documented below.
     * The `timing` block contains:
     */
    @JvmName("nqhlbjhswpsucdnh")
    public suspend fun timings(argument: suspend TriggerBuildArtifactsObjectsTimingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TriggerBuildArtifactsObjectsTimingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.timings = mapped
    }

    /**
     * @param values (Output)
     * Output only. Stores timing information for pushing all artifact objects.
     * Structure is documented below.
     * The `timing` block contains:
     */
    @JvmName("jllniapfutlwcyqo")
    public suspend fun timings(vararg values: TriggerBuildArtifactsObjectsTimingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timings = mapped
    }

    internal fun build(): TriggerBuildArtifactsObjectsArgs = TriggerBuildArtifactsObjectsArgs(
        location = location,
        paths = paths,
        timings = timings,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy