com.pulumi.azurenative.automation.kotlin.inputs.SkuArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.automation.kotlin.inputs
import com.pulumi.azurenative.automation.inputs.SkuArgs.builder
import com.pulumi.azurenative.automation.kotlin.enums.SkuNameEnum
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The account SKU.
* @property capacity Gets or sets the SKU capacity.
* @property family Gets or sets the SKU family.
* @property name Gets or sets the SKU name of the account.
*/
public data class SkuArgs(
public val capacity: Output? = null,
public val family: Output? = null,
public val name: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.automation.inputs.SkuArgs =
com.pulumi.azurenative.automation.inputs.SkuArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.family(family?.applyValue({ args0 -> args0 }))
.name(
name.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [SkuArgs].
*/
@PulumiTagMarker
public class SkuArgsBuilder internal constructor() {
private var capacity: Output? = null
private var family: Output? = null
private var name: Output>? = null
/**
* @param value Gets or sets the SKU capacity.
*/
@JvmName("wisalyfppaootext")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value Gets or sets the SKU family.
*/
@JvmName("dfmdkwygdjdxrvxp")
public suspend fun family(`value`: Output) {
this.family = value
}
/**
* @param value Gets or sets the SKU name of the account.
*/
@JvmName("kilphwnlwmfvxrsc")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value Gets or sets the SKU capacity.
*/
@JvmName("washeodvndqgoisg")
public suspend fun capacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value Gets or sets the SKU family.
*/
@JvmName("gxbiucklckbulyus")
public suspend fun family(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.family = mapped
}
/**
* @param value Gets or sets the SKU name of the account.
*/
@JvmName("vifnucuevducroyc")
public suspend fun name(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Gets or sets the SKU name of the account.
*/
@JvmName("hgnmytfipfcxiuoa")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Gets or sets the SKU name of the account.
*/
@JvmName("bjxygourpnpctxqk")
public fun name(`value`: SkuNameEnum) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): SkuArgs = SkuArgs(
capacity = capacity,
family = family,
name = name ?: throw PulumiNullFieldException("name"),
)
}