![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devices.kotlin.inputs.IotHubSkuInfoArgs.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.devices.kotlin.inputs
import com.pulumi.azurenative.devices.inputs.IotHubSkuInfoArgs.builder
import com.pulumi.azurenative.devices.kotlin.enums.IotHubSku
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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Information about the SKU of the IoT hub.
* @property capacity The number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.
* @property name The name of the SKU.
*/
public data class IotHubSkuInfoArgs(
public val capacity: Output? = null,
public val name: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devices.inputs.IotHubSkuInfoArgs =
com.pulumi.azurenative.devices.inputs.IotHubSkuInfoArgs.builder()
.capacity(capacity?.applyValue({ args0 -> args0 }))
.name(
name.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [IotHubSkuInfoArgs].
*/
@PulumiTagMarker
public class IotHubSkuInfoArgsBuilder internal constructor() {
private var capacity: Output? = null
private var name: Output>? = null
/**
* @param value The number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.
*/
@JvmName("pwaagvbxjbhpnwrf")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value The name of the SKU.
*/
@JvmName("bkjivmylevaceicv")
public suspend fun name(`value`: Output>) {
this.name = value
}
/**
* @param value The number of provisioned IoT Hub units. See: https://docs.microsoft.com/azure/azure-subscription-service-limits#iot-hub-limits.
*/
@JvmName("sjynlwwfgcklkbst")
public suspend fun capacity(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value The name of the SKU.
*/
@JvmName("gxvakssblyfiqaif")
public suspend fun name(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the SKU.
*/
@JvmName("vtaxpjihyjtciitu")
public fun name(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the SKU.
*/
@JvmName("orfchtjsmxhjaduo")
public fun name(`value`: IotHubSku) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): IotHubSkuInfoArgs = IotHubSkuInfoArgs(
capacity = capacity,
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy