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

commonMain.aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iotwireless.model

import kotlin.collections.List

/**
 * The event for a log message, if the log message is tied to a wireless device.
 */
public sealed class WirelessDeviceEvent {
    public abstract val value: kotlin.String

    public object DownlinkData : aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent() {
        override val value: kotlin.String = "Downlink_Data"
        override fun toString(): kotlin.String = "DownlinkData"
    }

    public object Join : aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent() {
        override val value: kotlin.String = "Join"
        override fun toString(): kotlin.String = "Join"
    }

    public object Registration : aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent() {
        override val value: kotlin.String = "Registration"
        override fun toString(): kotlin.String = "Registration"
    }

    public object Rejoin : aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent() {
        override val value: kotlin.String = "Rejoin"
        override fun toString(): kotlin.String = "Rejoin"
    }

    public object UplinkData : aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent() {
        override val value: kotlin.String = "Uplink_Data"
        override fun toString(): kotlin.String = "UplinkData"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent() {
        override fun toString(): kotlin.String = "SdkUnknown($value)"
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.iotwireless.model.WirelessDeviceEvent = when (value) {
            "Downlink_Data" -> DownlinkData
            "Join" -> Join
            "Registration" -> Registration
            "Rejoin" -> Rejoin
            "Uplink_Data" -> UplinkData
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            DownlinkData,
            Join,
            Registration,
            Rejoin,
            UplinkData,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy