com.pulumi.azurenative.synapse.kotlin.inputs.AzureSkuArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.synapse.kotlin.inputs
import com.pulumi.azurenative.synapse.inputs.AzureSkuArgs.builder
import com.pulumi.azurenative.synapse.kotlin.enums.SkuName
import com.pulumi.azurenative.synapse.kotlin.enums.SkuSize
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
/**
* Azure SKU definition.
* @property capacity The number of instances of the cluster.
* @property name SKU name.
* @property size SKU size.
*/
public data class AzureSkuArgs(
public val capacity: Output? = null,
public val name: Output>,
public val size: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.synapse.inputs.AzureSkuArgs =
com.pulumi.azurenative.synapse.inputs.AzureSkuArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.name(
name.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.size(
size.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AzureSkuArgs].
*/
@PulumiTagMarker
public class AzureSkuArgsBuilder internal constructor() {
private var capacity: Output? = null
private var name: Output>? = null
private var size: Output>? = null
/**
* @param value The number of instances of the cluster.
*/
@JvmName("tvgumkllwqnqhpfr")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value SKU name.
*/
@JvmName("ksrmhudrmdkgdubl")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value SKU size.
*/
@JvmName("aeubcvdnskrmgmyt")
public suspend fun size(`value`: Output>) {
this.size = value
}
/**
* @param value The number of instances of the cluster.
*/
@JvmName("fafqwhhwjwaohowl")
public suspend fun capacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value SKU name.
*/
@JvmName("lbtjfwkbtvpcfdlb")
public suspend fun name(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value SKU name.
*/
@JvmName("tchkqgjslqpvcxak")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value SKU name.
*/
@JvmName("hdvanmoqojhetwsu")
public fun name(`value`: SkuName) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value SKU size.
*/
@JvmName("sfbavlugltotovfu")
public suspend fun size(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.size = mapped
}
/**
* @param value SKU size.
*/
@JvmName("evjwghdhutfiwitn")
public fun size(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.size = mapped
}
/**
* @param value SKU size.
*/
@JvmName("fypcrlhoykhxteuc")
public fun size(`value`: SkuSize) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.size = mapped
}
internal fun build(): AzureSkuArgs = AzureSkuArgs(
capacity = capacity,
name = name ?: throw PulumiNullFieldException("name"),
size = size ?: throw PulumiNullFieldException("size"),
)
}