![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.cache.kotlin.inputs.EnterpriseSkuArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.cache.kotlin.inputs
import com.pulumi.azurenative.cache.inputs.EnterpriseSkuArgs.builder
import com.pulumi.azurenative.cache.kotlin.enums.SkuName
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
/**
* SKU parameters supplied to the create RedisEnterprise operation.
* @property capacity The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.
* @property name The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)
*/
public data class EnterpriseSkuArgs(
public val capacity: Output? = null,
public val name: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.cache.inputs.EnterpriseSkuArgs =
com.pulumi.azurenative.cache.inputs.EnterpriseSkuArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.name(
name.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [EnterpriseSkuArgs].
*/
@PulumiTagMarker
public class EnterpriseSkuArgsBuilder internal constructor() {
private var capacity: Output? = null
private var name: Output>? = null
/**
* @param value The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.
*/
@JvmName("aeqhrdlimxlnsqad")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)
*/
@JvmName("hgqhilxmeuyajwqi")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.
*/
@JvmName("tkvxsuslxgxkarti")
public suspend fun capacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)
*/
@JvmName("kwrlialknafqrhus")
public suspend fun name(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)
*/
@JvmName("cyhaqmehudjioqdm")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)
*/
@JvmName("onjfbwncockqqvgt")
public fun name(`value`: SkuName) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): EnterpriseSkuArgs = EnterpriseSkuArgs(
capacity = capacity,
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy