commonMain.aws.sdk.kotlin.services.iotwireless.model.DeviceState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// 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