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

com.pulumi.gcp.clouddeploy.kotlin.inputs.DeliveryPipelineSerialPipelineArgs.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.clouddeploy.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.clouddeploy.inputs.DeliveryPipelineSerialPipelineArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property stages Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
 */
public data class DeliveryPipelineSerialPipelineArgs(
    public val stages: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.clouddeploy.inputs.DeliveryPipelineSerialPipelineArgs =
        com.pulumi.gcp.clouddeploy.inputs.DeliveryPipelineSerialPipelineArgs.builder()
            .stages(
                stages?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     */
    @JvmName("dfblthmbwufillka")
    public suspend fun stages(`value`: Output>) {
        this.stages = value
    }

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

    /**
     * @param values Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     */
    @JvmName("pyqcmkeooapyjjtr")
    public suspend fun stages(values: List>) {
        this.stages = Output.all(values)
    }

    /**
     * @param value Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     */
    @JvmName("ooctifbjmwnvfudg")
    public suspend fun stages(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    /**
     * @param argument Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     */
    @JvmName("qesandmbajiwlpfr")
    public suspend fun stages(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DeliveryPipelineSerialPipelineStageArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.stages = mapped
    }

    /**
     * @param argument Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     */
    @JvmName("tjvbupnyfinvgctd")
    public suspend fun stages(vararg argument: suspend DeliveryPipelineSerialPipelineStageArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DeliveryPipelineSerialPipelineStageArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.stages = mapped
    }

    /**
     * @param argument Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     */
    @JvmName("usfuygrrlxeqxmpd")
    public suspend fun stages(argument: suspend DeliveryPipelineSerialPipelineStageArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DeliveryPipelineSerialPipelineStageArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.stages = mapped
    }

    /**
     * @param values Each stage specifies configuration for a `Target`. The ordering of this list defines the promotion flow.
     */
    @JvmName("uovdknqtgujsekcd")
    public suspend fun stages(vararg values: DeliveryPipelineSerialPipelineStageArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.stages = mapped
    }

    internal fun build(): DeliveryPipelineSerialPipelineArgs = DeliveryPipelineSerialPipelineArgs(
        stages = stages,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy