com.pulumi.azurenative.network.kotlin.inputs.NatGatewaySkuArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.NatGatewaySkuArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.NatGatewaySkuName
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* SKU of nat gateway.
* @property name Name of Nat Gateway SKU.
*/
public data class NatGatewaySkuArgs(
public val name: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.NatGatewaySkuArgs =
com.pulumi.azurenative.network.inputs.NatGatewaySkuArgs.builder()
.name(
name?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [NatGatewaySkuArgs].
*/
@PulumiTagMarker
public class NatGatewaySkuArgsBuilder internal constructor() {
private var name: Output>? = null
/**
* @param value Name of Nat Gateway SKU.
*/
@JvmName("acuvklroqfwpfhop")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value Name of Nat Gateway SKU.
*/
@JvmName("puqkpoplsyenddle")
public suspend fun name(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Name of Nat Gateway SKU.
*/
@JvmName("lcmkxqwchepohdpu")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Name of Nat Gateway SKU.
*/
@JvmName("ugpxjepqjjkldroa")
public fun name(`value`: NatGatewaySkuName) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): NatGatewaySkuArgs = NatGatewaySkuArgs(
name = name,
)
}