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

com.pulumi.awsnative.iotwireless.kotlin.WirelessDeviceArgs.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.iotwireless.kotlin

import com.pulumi.awsnative.iotwireless.WirelessDeviceArgs.builder
import com.pulumi.awsnative.iotwireless.kotlin.enums.WirelessDeviceType
import com.pulumi.awsnative.iotwireless.kotlin.inputs.WirelessDeviceLoRaWanDeviceArgs
import com.pulumi.awsnative.iotwireless.kotlin.inputs.WirelessDeviceLoRaWanDeviceArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Create and manage wireless gateways, including LoRa gateways.
 * @property description Wireless device description
 * @property destinationName Wireless device destination name
 * @property lastUplinkReceivedAt The date and time when the most recent uplink was received.
 * @property loRaWan The combination of Package, Station and Model which represents the version of the LoRaWAN Wireless Device.
 * @property name Wireless device name
 * @property tags A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
 * @property thingArn Thing arn. Passed into update to associate Thing with Wireless device.
 * @property type Wireless device type, currently only Sidewalk and LoRa
 */
public data class WirelessDeviceArgs(
    public val description: Output? = null,
    public val destinationName: Output? = null,
    public val lastUplinkReceivedAt: Output? = null,
    public val loRaWan: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
    public val thingArn: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotwireless.WirelessDeviceArgs =
        com.pulumi.awsnative.iotwireless.WirelessDeviceArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .destinationName(destinationName?.applyValue({ args0 -> args0 }))
            .lastUplinkReceivedAt(lastUplinkReceivedAt?.applyValue({ args0 -> args0 }))
            .loRaWan(loRaWan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .thingArn(thingArn?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [WirelessDeviceArgs].
 */
@PulumiTagMarker
public class WirelessDeviceArgsBuilder internal constructor() {
    private var description: Output? = null

    private var destinationName: Output? = null

    private var lastUplinkReceivedAt: Output? = null

    private var loRaWan: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    private var thingArn: Output? = null

    private var type: Output? = null

    /**
     * @param value Wireless device description
     */
    @JvmName("tnyalhbfpcuxpwds")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Wireless device destination name
     */
    @JvmName("otmxjobnjkhslkyc")
    public suspend fun destinationName(`value`: Output) {
        this.destinationName = value
    }

    /**
     * @param value The date and time when the most recent uplink was received.
     */
    @JvmName("rqawsyuinbpqjabx")
    public suspend fun lastUplinkReceivedAt(`value`: Output) {
        this.lastUplinkReceivedAt = value
    }

    /**
     * @param value The combination of Package, Station and Model which represents the version of the LoRaWAN Wireless Device.
     */
    @JvmName("kapgyicobtuoagoy")
    public suspend fun loRaWan(`value`: Output) {
        this.loRaWan = value
    }

    /**
     * @param value Wireless device name
     */
    @JvmName("cohxutsjdufuyjbl")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
     */
    @JvmName("arhhcieethnjwkrq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
     */
    @JvmName("vvnfayyctdisbbac")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Thing arn. Passed into update to associate Thing with Wireless device.
     */
    @JvmName("otjghprymfrfofos")
    public suspend fun thingArn(`value`: Output) {
        this.thingArn = value
    }

    /**
     * @param value Wireless device type, currently only Sidewalk and LoRa
     */
    @JvmName("uqxlmgxbmwflnrpq")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Wireless device description
     */
    @JvmName("udscxxshiwnnkgpn")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Wireless device destination name
     */
    @JvmName("hpxndfonrogeccal")
    public suspend fun destinationName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationName = mapped
    }

    /**
     * @param value The date and time when the most recent uplink was received.
     */
    @JvmName("libuhexjmygjeldx")
    public suspend fun lastUplinkReceivedAt(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastUplinkReceivedAt = mapped
    }

    /**
     * @param value The combination of Package, Station and Model which represents the version of the LoRaWAN Wireless Device.
     */
    @JvmName("nurilacgutkhhmxc")
    public suspend fun loRaWan(`value`: WirelessDeviceLoRaWanDeviceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loRaWan = mapped
    }

    /**
     * @param argument The combination of Package, Station and Model which represents the version of the LoRaWAN Wireless Device.
     */
    @JvmName("ujtgsvweobvbrcwq")
    public suspend fun loRaWan(argument: suspend WirelessDeviceLoRaWanDeviceArgsBuilder.() -> Unit) {
        val toBeMapped = WirelessDeviceLoRaWanDeviceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.loRaWan = mapped
    }

    /**
     * @param value Wireless device name
     */
    @JvmName("fxatdpyhyihndkgg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
     */
    @JvmName("xdryfuklupslmilt")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
     */
    @JvmName("blxfpbrbwaaccwnm")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
     */
    @JvmName("cfpwrxongjcfdyhx")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
     */
    @JvmName("vtahhflsxnkgetvk")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of key-value pairs that contain metadata for the device. Currently not supported, will not create if tags are passed.
     */
    @JvmName("oqgixqmrkyfholyi")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Thing arn. Passed into update to associate Thing with Wireless device.
     */
    @JvmName("sjajrnmpjlgexhhe")
    public suspend fun thingArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.thingArn = mapped
    }

    /**
     * @param value Wireless device type, currently only Sidewalk and LoRa
     */
    @JvmName("bjvgpxkgogmxergn")
    public suspend fun type(`value`: WirelessDeviceType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): WirelessDeviceArgs = WirelessDeviceArgs(
        description = description,
        destinationName = destinationName,
        lastUplinkReceivedAt = lastUplinkReceivedAt,
        loRaWan = loRaWan,
        name = name,
        tags = tags,
        thingArn = thingArn,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy