All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.iot.kotlin.inputs.IoTHubEnrichmentArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.iot.kotlin.inputs

import com.pulumi.azure.iot.inputs.IoTHubEnrichmentArgs.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.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property endpointNames The list of endpoints which will be enriched.
 * @property key The key of the enrichment.
 * @property value The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
 */
public data class IoTHubEnrichmentArgs(
    public val endpointNames: Output>,
    public val key: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.iot.inputs.IoTHubEnrichmentArgs =
        com.pulumi.azure.iot.inputs.IoTHubEnrichmentArgs.builder()
            .endpointNames(endpointNames.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .key(key.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IoTHubEnrichmentArgs].
 */
@PulumiTagMarker
public class IoTHubEnrichmentArgsBuilder internal constructor() {
    private var endpointNames: Output>? = null

    private var key: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The list of endpoints which will be enriched.
     */
    @JvmName("ybghcnuwkmbetqqb")
    public suspend fun endpointNames(`value`: Output>) {
        this.endpointNames = value
    }

    @JvmName("tkmmfvyglmfmmnol")
    public suspend fun endpointNames(vararg values: Output) {
        this.endpointNames = Output.all(values.asList())
    }

    /**
     * @param values The list of endpoints which will be enriched.
     */
    @JvmName("ynnvxvkdmlbjfvdm")
    public suspend fun endpointNames(values: List>) {
        this.endpointNames = Output.all(values)
    }

    /**
     * @param value The key of the enrichment.
     */
    @JvmName("heofdsoqgxhfbcee")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
     */
    @JvmName("dkvwhntncqxbxawt")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The list of endpoints which will be enriched.
     */
    @JvmName("gwlvglqoputdtthc")
    public suspend fun endpointNames(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointNames = mapped
    }

    /**
     * @param values The list of endpoints which will be enriched.
     */
    @JvmName("leoqwrhmqdouemam")
    public suspend fun endpointNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointNames = mapped
    }

    /**
     * @param value The key of the enrichment.
     */
    @JvmName("udgixtddedpfrsev")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value The value of the enrichment. Value can be any static string, the name of the IoT Hub sending the message (use `$iothubname`) or information from the device twin (ex: `$twin.tags.latitude`)
     */
    @JvmName("khccmuaoxopidwim")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): IoTHubEnrichmentArgs = IoTHubEnrichmentArgs(
        endpointNames = endpointNames ?: throw PulumiNullFieldException("endpointNames"),
        key = key ?: throw PulumiNullFieldException("key"),
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy