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

com.pulumi.awsnative.iot.kotlin.inputs.ThingGroupAttributePayloadArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.ThingGroupAttributePayloadArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property attributes A JSON string containing up to three key-value pair in JSON format. For example:
 * `{\"attributes\":{\"string1\":\"string2\"}}`
 */
public data class ThingGroupAttributePayloadArgs(
    public val attributes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.ThingGroupAttributePayloadArgs =
        com.pulumi.awsnative.iot.inputs.ThingGroupAttributePayloadArgs.builder()
            .attributes(
                attributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value A JSON string containing up to three key-value pair in JSON format. For example:
     * `{\"attributes\":{\"string1\":\"string2\"}}`
     */
    @JvmName("obeiruwgjcnhydni")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

    /**
     * @param value A JSON string containing up to three key-value pair in JSON format. For example:
     * `{\"attributes\":{\"string1\":\"string2\"}}`
     */
    @JvmName("fkklvrcfqlconvug")
    public suspend fun attributes(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param values A JSON string containing up to three key-value pair in JSON format. For example:
     * `{\"attributes\":{\"string1\":\"string2\"}}`
     */
    @JvmName("xynlpefxxewwhbsc")
    public fun attributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    internal fun build(): ThingGroupAttributePayloadArgs = ThingGroupAttributePayloadArgs(
        attributes = attributes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy