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

com.pulumi.azurenative.storageactions.kotlin.inputs.ElseConditionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.storageactions.kotlin.inputs

import com.pulumi.azurenative.storageactions.inputs.ElseConditionArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The else block of storage task operation
 * @property operations List of operations to execute in the else block
 */
public data class ElseConditionArgs(
    public val operations: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storageactions.inputs.ElseConditionArgs =
        com.pulumi.azurenative.storageactions.inputs.ElseConditionArgs.builder()
            .operations(
                operations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value List of operations to execute in the else block
     */
    @JvmName("lugwtxlsnwqwqden")
    public suspend fun operations(`value`: Output>) {
        this.operations = value
    }

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

    /**
     * @param values List of operations to execute in the else block
     */
    @JvmName("ibrmssfcyqkoqbdq")
    public suspend fun operations(values: List>) {
        this.operations = Output.all(values)
    }

    /**
     * @param value List of operations to execute in the else block
     */
    @JvmName("xclvfyjoslljmyuh")
    public suspend fun operations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operations = mapped
    }

    /**
     * @param argument List of operations to execute in the else block
     */
    @JvmName("alcrehgrdcmccvmj")
    public suspend fun operations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StorageTaskOperationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param argument List of operations to execute in the else block
     */
    @JvmName("idksyegaxypgtpwb")
    public suspend fun operations(vararg argument: suspend StorageTaskOperationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StorageTaskOperationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param argument List of operations to execute in the else block
     */
    @JvmName("xgwkriullkbbwhmm")
    public suspend fun operations(argument: suspend StorageTaskOperationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(StorageTaskOperationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.operations = mapped
    }

    /**
     * @param values List of operations to execute in the else block
     */
    @JvmName("pkomethbchhbfpwg")
    public suspend fun operations(vararg values: StorageTaskOperationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.operations = mapped
    }

    internal fun build(): ElseConditionArgs = ElseConditionArgs(
        operations = operations ?: throw PulumiNullFieldException("operations"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy