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

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

import com.pulumi.awsnative.iotwireless.inputs.WirelessDeviceAbpV10xArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property devAddr The DevAddr value.
 * @property sessionKeys Session keys for ABP v1.0.x.
 */
public data class WirelessDeviceAbpV10xArgs(
    public val devAddr: Output,
    public val sessionKeys: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotwireless.inputs.WirelessDeviceAbpV10xArgs =
        com.pulumi.awsnative.iotwireless.inputs.WirelessDeviceAbpV10xArgs.builder()
            .devAddr(devAddr.applyValue({ args0 -> args0 }))
            .sessionKeys(sessionKeys.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [WirelessDeviceAbpV10xArgs].
 */
@PulumiTagMarker
public class WirelessDeviceAbpV10xArgsBuilder internal constructor() {
    private var devAddr: Output? = null

    private var sessionKeys: Output? = null

    /**
     * @param value The DevAddr value.
     */
    @JvmName("gtbfkteihdgtadgy")
    public suspend fun devAddr(`value`: Output) {
        this.devAddr = value
    }

    /**
     * @param value Session keys for ABP v1.0.x.
     */
    @JvmName("pabwehoohxvjvybx")
    public suspend fun sessionKeys(`value`: Output) {
        this.sessionKeys = value
    }

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

    /**
     * @param value Session keys for ABP v1.0.x.
     */
    @JvmName("wfitmqhduexrlgng")
    public suspend fun sessionKeys(`value`: WirelessDeviceSessionKeysAbpV10xArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sessionKeys = mapped
    }

    /**
     * @param argument Session keys for ABP v1.0.x.
     */
    @JvmName("ddqoatymtmhcdsgl")
    public suspend fun sessionKeys(argument: suspend WirelessDeviceSessionKeysAbpV10xArgsBuilder.() -> Unit) {
        val toBeMapped = WirelessDeviceSessionKeysAbpV10xArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sessionKeys = mapped
    }

    internal fun build(): WirelessDeviceAbpV10xArgs = WirelessDeviceAbpV10xArgs(
        devAddr = devAddr ?: throw PulumiNullFieldException("devAddr"),
        sessionKeys = sessionKeys ?: throw PulumiNullFieldException("sessionKeys"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy