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

com.pulumi.googlenative.toolresults.v1beta3.kotlin.inputs.PrimaryStepArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.toolresults.v1beta3.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.toolresults.v1beta3.inputs.PrimaryStepArgs.builder
import com.pulumi.googlenative.toolresults.v1beta3.kotlin.enums.PrimaryStepRollUp
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

/**
 * Stores rollup test status of multiple steps that were run as a group and outcome of each individual step.
 * @property individualOutcome Step Id and outcome of each individual step.
 * @property rollUp Rollup test status of multiple steps that were run with the same configuration as a group.
 */
public data class PrimaryStepArgs(
    public val individualOutcome: Output>? = null,
    public val rollUp: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.toolresults.v1beta3.inputs.PrimaryStepArgs =
        com.pulumi.googlenative.toolresults.v1beta3.inputs.PrimaryStepArgs.builder()
            .individualOutcome(
                individualOutcome?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .rollUp(rollUp?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var rollUp: Output? = null

    /**
     * @param value Step Id and outcome of each individual step.
     */
    @JvmName("ljmmnlcxdjjjipfs")
    public suspend fun individualOutcome(`value`: Output>) {
        this.individualOutcome = value
    }

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

    /**
     * @param values Step Id and outcome of each individual step.
     */
    @JvmName("sitoiriaenurknvd")
    public suspend fun individualOutcome(values: List>) {
        this.individualOutcome = Output.all(values)
    }

    /**
     * @param value Rollup test status of multiple steps that were run with the same configuration as a group.
     */
    @JvmName("djdmxfgybvovjxad")
    public suspend fun rollUp(`value`: Output) {
        this.rollUp = value
    }

    /**
     * @param value Step Id and outcome of each individual step.
     */
    @JvmName("umpjiqxqmpdvyolr")
    public suspend fun individualOutcome(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.individualOutcome = mapped
    }

    /**
     * @param argument Step Id and outcome of each individual step.
     */
    @JvmName("oxalivyqlshfdmqg")
    public suspend fun individualOutcome(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IndividualOutcomeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.individualOutcome = mapped
    }

    /**
     * @param argument Step Id and outcome of each individual step.
     */
    @JvmName("xtfloodnvldnsybb")
    public suspend fun individualOutcome(vararg argument: suspend IndividualOutcomeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IndividualOutcomeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.individualOutcome = mapped
    }

    /**
     * @param argument Step Id and outcome of each individual step.
     */
    @JvmName("wcfqvhrjnmefvnte")
    public suspend fun individualOutcome(argument: suspend IndividualOutcomeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IndividualOutcomeArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.individualOutcome = mapped
    }

    /**
     * @param values Step Id and outcome of each individual step.
     */
    @JvmName("ewfxpkvchuaayljh")
    public suspend fun individualOutcome(vararg values: IndividualOutcomeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.individualOutcome = mapped
    }

    /**
     * @param value Rollup test status of multiple steps that were run with the same configuration as a group.
     */
    @JvmName("qmfpnpybuyfykgwh")
    public suspend fun rollUp(`value`: PrimaryStepRollUp?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rollUp = mapped
    }

    internal fun build(): PrimaryStepArgs = PrimaryStepArgs(
        individualOutcome = individualOutcome,
        rollUp = rollUp,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy