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

com.pulumi.azurenative.devhub.kotlin.inputs.WorkflowRunArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.devhub.kotlin.inputs

import com.pulumi.azurenative.devhub.inputs.WorkflowRunArgs.builder
import com.pulumi.azurenative.devhub.kotlin.enums.WorkflowRunStatus
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property workflowRunStatus Describes the status of the workflow run
 */
public data class WorkflowRunArgs(
    public val workflowRunStatus: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.devhub.inputs.WorkflowRunArgs =
        com.pulumi.azurenative.devhub.inputs.WorkflowRunArgs.builder()
            .workflowRunStatus(
                workflowRunStatus?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            ).build()
}

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

    /**
     * @param value Describes the status of the workflow run
     */
    @JvmName("deflcerfjlyiyqhf")
    public suspend fun workflowRunStatus(`value`: Output>) {
        this.workflowRunStatus = value
    }

    /**
     * @param value Describes the status of the workflow run
     */
    @JvmName("vevmqycceuflacmb")
    public suspend fun workflowRunStatus(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workflowRunStatus = mapped
    }

    /**
     * @param value Describes the status of the workflow run
     */
    @JvmName("mtdgmgrxaojqtylk")
    public fun workflowRunStatus(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.workflowRunStatus = mapped
    }

    /**
     * @param value Describes the status of the workflow run
     */
    @JvmName("vkgpftlbqifnjerb")
    public fun workflowRunStatus(`value`: WorkflowRunStatus) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.workflowRunStatus = mapped
    }

    internal fun build(): WorkflowRunArgs = WorkflowRunArgs(
        workflowRunStatus = workflowRunStatus,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy