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

com.pulumi.googlenative.servicemanagement.v1.kotlin.inputs.EnumArgs.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.EnumArgs.builder
import com.pulumi.googlenative.servicemanagement.v1.kotlin.enums.EnumSyntax
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

/**
 * Enum type definition.
 * @property edition The source edition string, only valid when syntax is SYNTAX_EDITIONS.
 * @property enumvalue Enum value definitions.
 * @property name Enum type name.
 * @property options Protocol buffer options.
 * @property sourceContext The source context.
 * @property syntax The source syntax.
 */
public data class EnumArgs(
    public val edition: Output? = null,
    public val enumvalue: Output>? = null,
    public val name: Output? = null,
    public val options: Output>? = null,
    public val sourceContext: Output? = null,
    public val syntax: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.servicemanagement.v1.inputs.EnumArgs =
        com.pulumi.googlenative.servicemanagement.v1.inputs.EnumArgs.builder()
            .edition(edition?.applyValue({ args0 -> args0 }))
            .enumvalue(
                enumvalue?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .options(
                options?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .sourceContext(sourceContext?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .syntax(syntax?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [EnumArgs].
 */
@PulumiTagMarker
public class EnumArgsBuilder internal constructor() {
    private var edition: Output? = null

    private var enumvalue: Output>? = null

    private var name: Output? = null

    private var options: Output>? = null

    private var sourceContext: Output? = null

    private var syntax: Output? = null

    /**
     * @param value The source edition string, only valid when syntax is SYNTAX_EDITIONS.
     */
    @JvmName("ucpcllfqnglrghwi")
    public suspend fun edition(`value`: Output) {
        this.edition = value
    }

    /**
     * @param value Enum value definitions.
     */
    @JvmName("wyyvanpdlruyxxnr")
    public suspend fun enumvalue(`value`: Output>) {
        this.enumvalue = value
    }

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

    /**
     * @param values Enum value definitions.
     */
    @JvmName("fmcbvkxbipnoekel")
    public suspend fun enumvalue(values: List>) {
        this.enumvalue = Output.all(values)
    }

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

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

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

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

    /**
     * @param value The source context.
     */
    @JvmName("pusumgfkfvixlagq")
    public suspend fun sourceContext(`value`: Output) {
        this.sourceContext = value
    }

    /**
     * @param value The source syntax.
     */
    @JvmName("gefqpqsekjnbwkwk")
    public suspend fun syntax(`value`: Output) {
        this.syntax = value
    }

    /**
     * @param value The source edition string, only valid when syntax is SYNTAX_EDITIONS.
     */
    @JvmName("ugqexetmewywehnp")
    public suspend fun edition(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.edition = mapped
    }

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

    /**
     * @param argument Enum value definitions.
     */
    @JvmName("dadwlfoomrglwlfu")
    public suspend fun enumvalue(argument: List Unit>) {
        val toBeMapped = argument.toList().map { EnumValueArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.enumvalue = mapped
    }

    /**
     * @param argument Enum value definitions.
     */
    @JvmName("sghpqrofhvcuaimk")
    public suspend fun enumvalue(vararg argument: suspend EnumValueArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { EnumValueArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.enumvalue = mapped
    }

    /**
     * @param argument Enum value definitions.
     */
    @JvmName("cnflpmtlgtqkqarp")
    public suspend fun enumvalue(argument: suspend EnumValueArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EnumValueArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.enumvalue = mapped
    }

    /**
     * @param values Enum value definitions.
     */
    @JvmName("vodjngltqgoblfer")
    public suspend fun enumvalue(vararg values: EnumValueArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enumvalue = mapped
    }

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

    /**
     * @param value Protocol buffer options.
     */
    @JvmName("vdkiaqkkwdetshcd")
    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("iepteyctwwxpkxbu")
    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("hbqpjalxyjsvtbkq")
    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("mtvbhywgufgwcjbe")
    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("beumxpeqdslmscfp")
    public suspend fun options(vararg values: OptionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param value The source context.
     */
    @JvmName("ktvxkjgnbjrfmpag")
    public suspend fun sourceContext(`value`: SourceContextArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceContext = mapped
    }

    /**
     * @param argument The source context.
     */
    @JvmName("farpwdchtvfkxjri")
    public suspend fun sourceContext(argument: suspend SourceContextArgsBuilder.() -> Unit) {
        val toBeMapped = SourceContextArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceContext = mapped
    }

    /**
     * @param value The source syntax.
     */
    @JvmName("giquraogvqrryxrd")
    public suspend fun syntax(`value`: EnumSyntax?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.syntax = mapped
    }

    internal fun build(): EnumArgs = EnumArgs(
        edition = edition,
        enumvalue = enumvalue,
        name = name,
        options = options,
        sourceContext = sourceContext,
        syntax = syntax,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy