
com.pulumi.googlenative.servicemanagement.v1.kotlin.inputs.EnumArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy