
com.pulumi.azurenative.hardwaresecuritymodules.kotlin.inputs.CloudHsmClusterSkuArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.hardwaresecuritymodules.kotlin.inputs
import com.pulumi.azurenative.hardwaresecuritymodules.inputs.CloudHsmClusterSkuArgs.builder
import com.pulumi.azurenative.hardwaresecuritymodules.kotlin.enums.CloudHsmClusterSkuFamily
import com.pulumi.azurenative.hardwaresecuritymodules.kotlin.enums.CloudHsmClusterSkuName
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
/**
* Cloud Hsm Cluster SKU information
* @property capacity Sku capacity
* @property family Sku family of the Cloud HSM Cluster
* @property name Sku name of the Cloud HSM Cluster
*/
public data class CloudHsmClusterSkuArgs(
public val capacity: Output? = null,
public val family: Output>,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.hardwaresecuritymodules.inputs.CloudHsmClusterSkuArgs =
com.pulumi.azurenative.hardwaresecuritymodules.inputs.CloudHsmClusterSkuArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.family(
family.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.name(name.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [CloudHsmClusterSkuArgs].
*/
@PulumiTagMarker
public class CloudHsmClusterSkuArgsBuilder internal constructor() {
private var capacity: Output? = null
private var family: Output>? = null
private var name: Output? = null
/**
* @param value Sku capacity
*/
@JvmName("uojxngtphbptheru")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value Sku family of the Cloud HSM Cluster
*/
@JvmName("jcosjikghleqvyto")
public suspend fun family(`value`: Output>) {
this.family = value
}
/**
* @param value Sku name of the Cloud HSM Cluster
*/
@JvmName("yqslplamjrniyymm")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Sku capacity
*/
@JvmName("tjjmphadgsiomicw")
public suspend fun capacity(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value Sku family of the Cloud HSM Cluster
*/
@JvmName("rrsdwvdshiplvdho")
public suspend fun family(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.family = mapped
}
/**
* @param value Sku family of the Cloud HSM Cluster
*/
@JvmName("ynvgoqexmohxlggi")
public fun family(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.family = mapped
}
/**
* @param value Sku family of the Cloud HSM Cluster
*/
@JvmName("qcqtysfbqskymuwr")
public fun family(`value`: CloudHsmClusterSkuFamily) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.family = mapped
}
/**
* @param value Sku name of the Cloud HSM Cluster
*/
@JvmName("oxeuicwqdhseogbi")
public suspend fun name(`value`: CloudHsmClusterSkuName) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): CloudHsmClusterSkuArgs = CloudHsmClusterSkuArgs(
capacity = capacity,
family = family ?: throw PulumiNullFieldException("family"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy