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

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

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

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

import kotlin.collections.List

/**
 * Sidewalk device message type. Default value is `CUSTOM_COMMAND_ID_NOTIFY`.
 */
public sealed class MessageType {
    public abstract val value: kotlin.String

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotwireless.model.MessageType() {
        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.MessageType = when (value) {
            "CUSTOM_COMMAND_ID_GET" -> CustomCommandIdGet
            "CUSTOM_COMMAND_ID_NOTIFY" -> CustomCommandIdNotify
            "CUSTOM_COMMAND_ID_RESP" -> CustomCommandIdResp
            "CUSTOM_COMMAND_ID_SET" -> CustomCommandIdSet
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            CustomCommandIdGet,
            CustomCommandIdNotify,
            CustomCommandIdResp,
            CustomCommandIdSet,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy