com.pulumi.azure.iot.kotlin.inputs.IotHubDpsLinkedHubArgs.kt Maven / Gradle / Ivy
@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("dmydeieqjyshvqam")
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("lfwwlvymmjhpslip")
public suspend fun applyAllocationPolicy(`value`: Output) {
this.applyAllocationPolicy = value
}
/**
* @param value The connection string to connect to the IoT Hub.
*/
@JvmName("ktaiuigxcqshpqfk")
public suspend fun connectionString(`value`: Output) {
this.connectionString = value
}
/**
* @param value The IoT Hub hostname.
*/
@JvmName("gmistkinjelustea")
public suspend fun hostname(`value`: Output) {
this.hostname = value
}
/**
* @param value The location of the IoT hub.
*/
@JvmName("hvvnwrrehlehrybb")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The weight applied to the IoT Hub. Defaults to `1`.
*/
@JvmName("nyfuplsydpkxqnms")
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("bqksnnieqgvkrhpn")
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("oitabylfnxssxwvy")
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("eycllnpeykracmtp")
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("fxdanyhfvbwgihgt")
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"),
)
}