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

com.pulumi.awsnative.iotwireless.kotlin.WirelessGatewayArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iotwireless.kotlin

import com.pulumi.awsnative.iotwireless.WirelessGatewayArgs.builder
import com.pulumi.awsnative.iotwireless.kotlin.inputs.WirelessGatewayLoRaWanGatewayArgs
import com.pulumi.awsnative.iotwireless.kotlin.inputs.WirelessGatewayLoRaWanGatewayArgsBuilder
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 Description of Wireless Gateway.
 * @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 Gateway.
 * @property name Name of Wireless Gateway.
 * @property tags A list of key-value pairs that contain metadata for the gateway.
 * @property thingArn Thing Arn. Passed into Update to associate a Thing with the Wireless Gateway.
 * @property thingName Thing Name. If there is a Thing created, this can be returned with a Get call.
 */
public data class WirelessGatewayArgs(
    public val description: 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 thingName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotwireless.WirelessGatewayArgs =
        com.pulumi.awsnative.iotwireless.WirelessGatewayArgs.builder()
            .description(description?.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 }))
            .thingName(thingName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WirelessGatewayArgs].
 */
@PulumiTagMarker
public class WirelessGatewayArgsBuilder internal constructor() {
    private var description: 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 thingName: Output? = null

    /**
     * @param value Description of Wireless Gateway.
     */
    @JvmName("ujyhjnxfrvwvphml")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The date and time when the most recent uplink was received.
     */
    @JvmName("jhoiwhmgtvdvfskh")
    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 Gateway.
     */
    @JvmName("jxbxokcswwagdqvf")
    public suspend fun loRaWan(`value`: Output) {
        this.loRaWan = value
    }

    /**
     * @param value Name of Wireless Gateway.
     */
    @JvmName("ogoathmuswfdstlr")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the gateway.
     */
    @JvmName("ncatvrycsqbwfxde")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("digpsoyykijknara")
    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 gateway.
     */
    @JvmName("fplaefhmycmkjbko")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Thing Arn. Passed into Update to associate a Thing with the Wireless Gateway.
     */
    @JvmName("birvhslaqckuaanf")
    public suspend fun thingArn(`value`: Output) {
        this.thingArn = value
    }

    /**
     * @param value Thing Name. If there is a Thing created, this can be returned with a Get call.
     */
    @JvmName("nliawdyteihdtdji")
    public suspend fun thingName(`value`: Output) {
        this.thingName = value
    }

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

    /**
     * @param value The date and time when the most recent uplink was received.
     */
    @JvmName("qnchdogxfphgugpn")
    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 Gateway.
     */
    @JvmName("libuvijdkdngjdjq")
    public suspend fun loRaWan(`value`: WirelessGatewayLoRaWanGatewayArgs?) {
        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 Gateway.
     */
    @JvmName("tqpfsjjtferbdmdt")
    public suspend fun loRaWan(argument: suspend WirelessGatewayLoRaWanGatewayArgsBuilder.() -> Unit) {
        val toBeMapped = WirelessGatewayLoRaWanGatewayArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.loRaWan = mapped
    }

    /**
     * @param value Name of Wireless Gateway.
     */
    @JvmName("hcevmdddnudnkmha")
    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 gateway.
     */
    @JvmName("tvmovgmdfuwjptjr")
    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 gateway.
     */
    @JvmName("eoqssenylylssjdn")
    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 gateway.
     */
    @JvmName("jpwsfvgpcpfbxpxk")
    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 gateway.
     */
    @JvmName("okoxhuhnjgnvslba")
    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 gateway.
     */
    @JvmName("cugtyuhgrfogrqku")
    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 a Thing with the Wireless Gateway.
     */
    @JvmName("oicfepeqnqmvjedu")
    public suspend fun thingArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.thingArn = mapped
    }

    /**
     * @param value Thing Name. If there is a Thing created, this can be returned with a Get call.
     */
    @JvmName("ibdfkrwbkgbvphye")
    public suspend fun thingName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.thingName = mapped
    }

    internal fun build(): WirelessGatewayArgs = WirelessGatewayArgs(
        description = description,
        lastUplinkReceivedAt = lastUplinkReceivedAt,
        loRaWan = loRaWan,
        name = name,
        tags = tags,
        thingArn = thingArn,
        thingName = thingName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy