com.pulumi.azure.iot.kotlin.inputs.IoTHubSkuArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.iot.kotlin.inputs
import com.pulumi.azure.iot.inputs.IoTHubSkuArgs.builder
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
/**
*
* @property capacity The number of provisioned IoT Hub units.
* > **NOTE:** Only one IotHub can be on the `Free` tier per subscription.
* @property name The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
* > **NOTE:** The `F1` sku is on `Free` tier.
*/
public data class IoTHubSkuArgs(
public val capacity: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.iot.inputs.IoTHubSkuArgs =
com.pulumi.azure.iot.inputs.IoTHubSkuArgs.builder()
.capacity(capacity.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IoTHubSkuArgs].
*/
@PulumiTagMarker
public class IoTHubSkuArgsBuilder internal constructor() {
private var capacity: Output? = null
private var name: Output? = null
/**
* @param value The number of provisioned IoT Hub units.
* > **NOTE:** Only one IotHub can be on the `Free` tier per subscription.
*/
@JvmName("mlwymyyfiqpoiiis")
public suspend fun capacity(`value`: Output) {
this.capacity = value
}
/**
* @param value The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
* > **NOTE:** The `F1` sku is on `Free` tier.
*/
@JvmName("uxpgwupboannhhws")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The number of provisioned IoT Hub units.
* > **NOTE:** Only one IotHub can be on the `Free` tier per subscription.
*/
@JvmName("ytuqgrpltsfvvssg")
public suspend fun capacity(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.capacity = mapped
}
/**
* @param value The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
* > **NOTE:** The `F1` sku is on `Free` tier.
*/
@JvmName("cbhhdxbjttrbvddt")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): IoTHubSkuArgs = IoTHubSkuArgs(
capacity = capacity ?: throw PulumiNullFieldException("capacity"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy