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

com.pulumi.azurenative.azurestackhci.kotlin.inputs.StepArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.azurestackhci.kotlin.inputs

import com.pulumi.azurenative.azurestackhci.inputs.StepArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Progress representation of the update run steps.
 * @property description More detailed description of the step.
 * @property endTimeUtc When the step reached a terminal state.
 * @property errorMessage Error message, specified if the step is in a failed state.
 * @property lastUpdatedTimeUtc Completion time of this step or the last completed sub-step.
 * @property name Name of the step.
 * @property startTimeUtc When the step started, or empty if it has not started executing.
 * @property status Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
 * @property steps Recursive model for child steps of this step.
 */
public data class StepArgs(
    public val description: Output? = null,
    public val endTimeUtc: Output? = null,
    public val errorMessage: Output? = null,
    public val lastUpdatedTimeUtc: Output? = null,
    public val name: Output? = null,
    public val startTimeUtc: Output? = null,
    public val status: Output? = null,
    public val steps: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurestackhci.inputs.StepArgs =
        com.pulumi.azurenative.azurestackhci.inputs.StepArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .endTimeUtc(endTimeUtc?.applyValue({ args0 -> args0 }))
            .errorMessage(errorMessage?.applyValue({ args0 -> args0 }))
            .lastUpdatedTimeUtc(lastUpdatedTimeUtc?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .startTimeUtc(startTimeUtc?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0 }))
            .steps(
                steps?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [StepArgs].
 */
@PulumiTagMarker
public class StepArgsBuilder internal constructor() {
    private var description: Output? = null

    private var endTimeUtc: Output? = null

    private var errorMessage: Output? = null

    private var lastUpdatedTimeUtc: Output? = null

    private var name: Output? = null

    private var startTimeUtc: Output? = null

    private var status: Output? = null

    private var steps: Output>? = null

    /**
     * @param value More detailed description of the step.
     */
    @JvmName("pvwwasrywsugylhl")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value When the step reached a terminal state.
     */
    @JvmName("wvbbxriautmmixsc")
    public suspend fun endTimeUtc(`value`: Output) {
        this.endTimeUtc = value
    }

    /**
     * @param value Error message, specified if the step is in a failed state.
     */
    @JvmName("inlfrkydskmtncda")
    public suspend fun errorMessage(`value`: Output) {
        this.errorMessage = value
    }

    /**
     * @param value Completion time of this step or the last completed sub-step.
     */
    @JvmName("lwhxxblsjbgnwaxl")
    public suspend fun lastUpdatedTimeUtc(`value`: Output) {
        this.lastUpdatedTimeUtc = value
    }

    /**
     * @param value Name of the step.
     */
    @JvmName("yyifxntvdwcdwxdj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value When the step started, or empty if it has not started executing.
     */
    @JvmName("aedgvdhixnartqgd")
    public suspend fun startTimeUtc(`value`: Output) {
        this.startTimeUtc = value
    }

    /**
     * @param value Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
     */
    @JvmName("iatknqghbidmdqrk")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value Recursive model for child steps of this step.
     */
    @JvmName("pkogctwdkxqsqopd")
    public suspend fun steps(`value`: Output>) {
        this.steps = value
    }

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

    /**
     * @param values Recursive model for child steps of this step.
     */
    @JvmName("otqprsbxvnrkhawg")
    public suspend fun steps(values: List>) {
        this.steps = Output.all(values)
    }

    /**
     * @param value More detailed description of the step.
     */
    @JvmName("pcqbmkktgjlraytp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value When the step reached a terminal state.
     */
    @JvmName("skmjxxlnxlncnwng")
    public suspend fun endTimeUtc(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endTimeUtc = mapped
    }

    /**
     * @param value Error message, specified if the step is in a failed state.
     */
    @JvmName("vrufswoxatbgekxx")
    public suspend fun errorMessage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.errorMessage = mapped
    }

    /**
     * @param value Completion time of this step or the last completed sub-step.
     */
    @JvmName("tfjdahlqvrwuevcp")
    public suspend fun lastUpdatedTimeUtc(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastUpdatedTimeUtc = mapped
    }

    /**
     * @param value Name of the step.
     */
    @JvmName("nwjdlpnptmadqqwa")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value When the step started, or empty if it has not started executing.
     */
    @JvmName("sxtqlgrynvcsmxxq")
    public suspend fun startTimeUtc(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startTimeUtc = mapped
    }

    /**
     * @param value Status of the step, bubbled up from the ECE action plan for installation attempts. Values are: 'Success', 'Error', 'InProgress', and 'Unknown status'.
     */
    @JvmName("bsyopbmpojxybxgw")
    public suspend fun status(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Recursive model for child steps of this step.
     */
    @JvmName("wneqilojmthppgeb")
    public suspend fun steps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    /**
     * @param argument Recursive model for child steps of this step.
     */
    @JvmName("enahmggouduonkvj")
    public suspend fun steps(argument: List Unit>) {
        val toBeMapped = argument.toList().map { StepArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument Recursive model for child steps of this step.
     */
    @JvmName("uwwvfnybwfaaeusn")
    public suspend fun steps(vararg argument: suspend StepArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { StepArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument Recursive model for child steps of this step.
     */
    @JvmName("rkdyxxegrbmjtoek")
    public suspend fun steps(argument: suspend StepArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(StepArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param values Recursive model for child steps of this step.
     */
    @JvmName("tuxyovobfkrxbajf")
    public suspend fun steps(vararg values: StepArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    internal fun build(): StepArgs = StepArgs(
        description = description,
        endTimeUtc = endTimeUtc,
        errorMessage = errorMessage,
        lastUpdatedTimeUtc = lastUpdatedTimeUtc,
        name = name,
        startTimeUtc = startTimeUtc,
        status = status,
        steps = steps,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy