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

com.pulumi.googlenative.servicemanagement.v1.kotlin.inputs.EnumValueArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.servicemanagement.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.servicemanagement.v1.inputs.EnumValueArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Enum value definition.
 * @property name Enum value name.
 * @property number Enum value number.
 * @property options Protocol buffer options.
 */
public data class EnumValueArgs(
    public val name: Output? = null,
    public val number: Output? = null,
    public val options: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.servicemanagement.v1.inputs.EnumValueArgs =
        com.pulumi.googlenative.servicemanagement.v1.inputs.EnumValueArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .number(number?.applyValue({ args0 -> args0 }))
            .options(
                options?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EnumValueArgs].
 */
@PulumiTagMarker
public class EnumValueArgsBuilder internal constructor() {
    private var name: Output? = null

    private var number: Output? = null

    private var options: Output>? = null

    /**
     * @param value Enum value name.
     */
    @JvmName("ibgmeeninsyutlsu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Enum value number.
     */
    @JvmName("kqupkphyffsfsjgg")
    public suspend fun number(`value`: Output) {
        this.number = value
    }

    /**
     * @param value Protocol buffer options.
     */
    @JvmName("jmgwhlbsayjtkgtu")
    public suspend fun options(`value`: Output>) {
        this.options = value
    }

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

    /**
     * @param values Protocol buffer options.
     */
    @JvmName("souxlveefavjvdvc")
    public suspend fun options(values: List>) {
        this.options = Output.all(values)
    }

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

    /**
     * @param value Enum value number.
     */
    @JvmName("dbqbnjwfvwenpvni")
    public suspend fun number(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.number = mapped
    }

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

    /**
     * @param argument Protocol buffer options.
     */
    @JvmName("hcvvwgbjamxrvdfc")
    public suspend fun options(argument: List Unit>) {
        val toBeMapped = argument.toList().map { OptionArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param argument Protocol buffer options.
     */
    @JvmName("rwwjmfwhfipjqlqj")
    public suspend fun options(vararg argument: suspend OptionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { OptionArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param argument Protocol buffer options.
     */
    @JvmName("jbviubqndgebgtvm")
    public suspend fun options(argument: suspend OptionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(OptionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param values Protocol buffer options.
     */
    @JvmName("qailaoawtrdndick")
    public suspend fun options(vararg values: OptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    internal fun build(): EnumValueArgs = EnumValueArgs(
        name = name,
        number = number,
        options = options,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy