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

commonMain.aws.sdk.kotlin.services.iotwireless.model.DeviceState.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

/**
 * Device state defines the device status of sidewalk device.
 */
public sealed class DeviceState {
    public abstract val value: kotlin.String

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotwireless.model.DeviceState() {
        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.DeviceState = when (value) {
            "Provisioned" -> Provisioned
            "RegisteredNotSeen" -> Registerednotseen
            "RegisteredReachable" -> Registeredreachable
            "RegisteredUnreachable" -> Registeredunreachable
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Provisioned,
            Registerednotseen,
            Registeredreachable,
            Registeredunreachable,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy