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

com.pulumi.azurenative.chaos.kotlin.inputs.BranchArgs.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.chaos.kotlin.inputs

import com.pulumi.azurenative.chaos.inputs.BranchArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Model that represents a branch in the step.
 * @property actions List of actions.
 * @property name String of the branch name.
 */
public data class BranchArgs(
    public val actions: Output>,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.chaos.inputs.BranchArgs =
        com.pulumi.azurenative.chaos.inputs.BranchArgs.builder()
            .actions(actions.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    /**
     * @param value List of actions.
     */
    @JvmName("muvydkhaoyclfomj")
    public suspend fun actions(`value`: Output>) {
        this.actions = value
    }

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

    /**
     * @param values List of actions.
     */
    @JvmName("djeqmctsvqtcrqbh")
    public suspend fun actions(values: List>) {
        this.actions = Output.all(values)
    }

    /**
     * @param value String of the branch name.
     */
    @JvmName("bwaeriwoxpxowilu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value List of actions.
     */
    @JvmName("akdjugcfftulweca")
    public suspend fun actions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

    /**
     * @param values List of actions.
     */
    @JvmName("glbyfgcqgmcihgks")
    public suspend fun actions(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actions = mapped
    }

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

    internal fun build(): BranchArgs = BranchArgs(
        actions = actions ?: throw PulumiNullFieldException("actions"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy