![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.videoanalyzer.kotlin.inputs.IotHubArgs.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.videoanalyzer.kotlin.inputs
import com.pulumi.azurenative.videoanalyzer.inputs.IotHubArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The IoT Hub details.
* @property id The IoT Hub resource identifier.
* @property identity The IoT Hub identity.
*/
public data class IotHubArgs(
public val id: Output,
public val identity: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.videoanalyzer.inputs.IotHubArgs =
com.pulumi.azurenative.videoanalyzer.inputs.IotHubArgs.builder()
.id(id.applyValue({ args0 -> args0 }))
.identity(identity.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [IotHubArgs].
*/
@PulumiTagMarker
public class IotHubArgsBuilder internal constructor() {
private var id: Output? = null
private var identity: Output? = null
/**
* @param value The IoT Hub resource identifier.
*/
@JvmName("gnkwymywsrjhpgvi")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The IoT Hub identity.
*/
@JvmName("psujwvnhdbubdsnp")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The IoT Hub resource identifier.
*/
@JvmName("tkfnvatnvmckfeyd")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The IoT Hub identity.
*/
@JvmName("dxnflrghbjshywef")
public suspend fun identity(`value`: ResourceIdentityArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The IoT Hub identity.
*/
@JvmName("jxmbbicmhabyqkin")
public suspend fun identity(argument: suspend ResourceIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ResourceIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
internal fun build(): IotHubArgs = IotHubArgs(
id = id ?: throw PulumiNullFieldException("id"),
identity = identity ?: throw PulumiNullFieldException("identity"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy