
com.pulumi.azure.iot.kotlin.inputs.IotHubDpsLinkedHubArgs.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.IotHubDpsLinkedHubArgs.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
/**
*
* @property allocationWeight The weight applied to the IoT Hub. Defaults to `1`.
* @property applyAllocationPolicy Determines whether to apply allocation policies to the IoT Hub. Defaults to `true`.
* @property connectionString The connection string to connect to the IoT Hub.
* @property hostname The IoT Hub hostname.
* @property location The location of the IoT hub.
*/
public data class IotHubDpsLinkedHubArgs(
public val allocationWeight: Output? = null,
public val applyAllocationPolicy: Output? = null,
public val connectionString: Output,
public val hostname: Output? = null,
public val location: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.iot.inputs.IotHubDpsLinkedHubArgs =
com.pulumi.azure.iot.inputs.IotHubDpsLinkedHubArgs.builder()
.allocationWeight(allocationWeight?.applyValue({ args0 -> args0 }))
.applyAllocationPolicy(applyAllocationPolicy?.applyValue({ args0 -> args0 }))
.connectionString(connectionString.applyValue({ args0 -> args0 }))
.hostname(hostname?.applyValue({ args0 -> args0 }))
.location(location.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IotHubDpsLinkedHubArgs].
*/
@PulumiTagMarker
public class IotHubDpsLinkedHubArgsBuilder internal constructor() {
private var allocationWeight: Output? = null
private var applyAllocationPolicy: Output? = null
private var connectionString: Output? = null
private var hostname: Output? = null
private var location: Output? = null
/**
* @param value The weight applied to the IoT Hub. Defaults to `1`.
*/
@JvmName("cjkpiicpxyudujpl")
public suspend fun allocationWeight(`value`: Output) {
this.allocationWeight = value
}
/**
* @param value Determines whether to apply allocation policies to the IoT Hub. Defaults to `true`.
*/
@JvmName("tvaokhaixxfogabw")
public suspend fun applyAllocationPolicy(`value`: Output) {
this.applyAllocationPolicy = value
}
/**
* @param value The connection string to connect to the IoT Hub.
*/
@JvmName("jpxmntkwwrvdimrn")
public suspend fun connectionString(`value`: Output) {
this.connectionString = value
}
/**
* @param value The IoT Hub hostname.
*/
@JvmName("wshukeajhfiqnlqn")
public suspend fun hostname(`value`: Output) {
this.hostname = value
}
/**
* @param value The location of the IoT hub.
*/
@JvmName("vqmeysmimmbxjmox")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The weight applied to the IoT Hub. Defaults to `1`.
*/
@JvmName("xmnqolqkxvgbehly")
public suspend fun allocationWeight(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allocationWeight = mapped
}
/**
* @param value Determines whether to apply allocation policies to the IoT Hub. Defaults to `true`.
*/
@JvmName("kwnrafvwmagrjsjb")
public suspend fun applyAllocationPolicy(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.applyAllocationPolicy = mapped
}
/**
* @param value The connection string to connect to the IoT Hub.
*/
@JvmName("kxsytmvystorfbkw")
public suspend fun connectionString(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.connectionString = mapped
}
/**
* @param value The IoT Hub hostname.
*/
@JvmName("bkedaalddjrwwmfm")
public suspend fun hostname(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hostname = mapped
}
/**
* @param value The location of the IoT hub.
*/
@JvmName("ckwjnxbharwyclua")
public suspend fun location(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.location = mapped
}
internal fun build(): IotHubDpsLinkedHubArgs = IotHubDpsLinkedHubArgs(
allocationWeight = allocationWeight,
applyAllocationPolicy = applyAllocationPolicy,
connectionString = connectionString ?: throw PulumiNullFieldException("connectionString"),
hostname = hostname,
location = location ?: throw PulumiNullFieldException("location"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy