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

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

package com.pulumi.aws.iot.kotlin.inputs

import com.pulumi.aws.iot.inputs.ThingGroupPropertiesAttributePayloadArgs.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 Key-value map.
 */
public data class ThingGroupPropertiesAttributePayloadArgs(
    public val attributes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iot.inputs.ThingGroupPropertiesAttributePayloadArgs =
        com.pulumi.aws.iot.inputs.ThingGroupPropertiesAttributePayloadArgs.builder()
            .attributes(
                attributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    /**
     * @param value Key-value map.
     */
    @JvmName("lgnxnuwipddcdcsv")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

    /**
     * @param value Key-value map.
     */
    @JvmName("vhmyrcssrvlnaadw")
    public suspend fun attributes(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param values Key-value map.
     */
    @JvmName("cmryfjxssvkucjpn")
    public fun attributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy