![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.devices.kotlin.inputs.IotHubDefinitionDescriptionArgs.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.IotHubDefinitionDescriptionArgs.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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Description of the IoT hub.
* @property allocationWeight weight to apply for a given iot h.
* @property applyAllocationPolicy flag for applying allocationPolicy or not for a given iot hub.
* @property connectionString Connection string of the IoT hub.
* @property location ARM region of the IoT hub.
*/
public data class IotHubDefinitionDescriptionArgs(
public val allocationWeight: Output? = null,
public val applyAllocationPolicy: Output? = null,
public val connectionString: Output,
public val location: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.devices.inputs.IotHubDefinitionDescriptionArgs =
com.pulumi.azurenative.devices.inputs.IotHubDefinitionDescriptionArgs.builder()
.allocationWeight(allocationWeight?.applyValue({ args0 -> args0 }))
.applyAllocationPolicy(applyAllocationPolicy?.applyValue({ args0 -> args0 }))
.connectionString(connectionString.applyValue({ args0 -> args0 }))
.location(location.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IotHubDefinitionDescriptionArgs].
*/
@PulumiTagMarker
public class IotHubDefinitionDescriptionArgsBuilder internal constructor() {
private var allocationWeight: Output? = null
private var applyAllocationPolicy: Output? = null
private var connectionString: Output? = null
private var location: Output? = null
/**
* @param value weight to apply for a given iot h.
*/
@JvmName("siwgeaihrtxkjqxy")
public suspend fun allocationWeight(`value`: Output) {
this.allocationWeight = value
}
/**
* @param value flag for applying allocationPolicy or not for a given iot hub.
*/
@JvmName("albipfbscdkmlsry")
public suspend fun applyAllocationPolicy(`value`: Output) {
this.applyAllocationPolicy = value
}
/**
* @param value Connection string of the IoT hub.
*/
@JvmName("kialgwrnrnrhxqtw")
public suspend fun connectionString(`value`: Output) {
this.connectionString = value
}
/**
* @param value ARM region of the IoT hub.
*/
@JvmName("rrtcplfueskilhsd")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value weight to apply for a given iot h.
*/
@JvmName("erulfkmebarlvpdn")
public suspend fun allocationWeight(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allocationWeight = mapped
}
/**
* @param value flag for applying allocationPolicy or not for a given iot hub.
*/
@JvmName("nykonxovddsydajn")
public suspend fun applyAllocationPolicy(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.applyAllocationPolicy = mapped
}
/**
* @param value Connection string of the IoT hub.
*/
@JvmName("axtwlmbmgedlgmos")
public suspend fun connectionString(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.connectionString = mapped
}
/**
* @param value ARM region of the IoT hub.
*/
@JvmName("esiolrwtvlyxdssy")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.location = mapped
}
internal fun build(): IotHubDefinitionDescriptionArgs = IotHubDefinitionDescriptionArgs(
allocationWeight = allocationWeight,
applyAllocationPolicy = applyAllocationPolicy,
connectionString = connectionString ?: throw PulumiNullFieldException("connectionString"),
location = location ?: throw PulumiNullFieldException("location"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy