commonMain.aws.sdk.kotlin.services.iotwireless.model.FuotaTaskStatus.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
/**
* The status of a FUOTA task.
*/
public sealed class FuotaTaskStatus {
public abstract val value: kotlin.String
public object DeleteWaiting : aws.sdk.kotlin.services.iotwireless.model.FuotaTaskStatus() {
override val value: kotlin.String = "Delete_Waiting"
override fun toString(): kotlin.String = "DeleteWaiting"
}
public object FuotaDone : aws.sdk.kotlin.services.iotwireless.model.FuotaTaskStatus() {
override val value: kotlin.String = "FuotaDone"
override fun toString(): kotlin.String = "FuotaDone"
}
public object FuotaSessionWaiting : aws.sdk.kotlin.services.iotwireless.model.FuotaTaskStatus() {
override val value: kotlin.String = "FuotaSession_Waiting"
override fun toString(): kotlin.String = "FuotaSessionWaiting"
}
public object InFuotaSession : aws.sdk.kotlin.services.iotwireless.model.FuotaTaskStatus() {
override val value: kotlin.String = "In_FuotaSession"
override fun toString(): kotlin.String = "InFuotaSession"
}
public object Pending : aws.sdk.kotlin.services.iotwireless.model.FuotaTaskStatus() {
override val value: kotlin.String = "Pending"
override fun toString(): kotlin.String = "Pending"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotwireless.model.FuotaTaskStatus() {
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.FuotaTaskStatus = when (value) {
"Delete_Waiting" -> DeleteWaiting
"FuotaDone" -> FuotaDone
"FuotaSession_Waiting" -> FuotaSessionWaiting
"In_FuotaSession" -> InFuotaSession
"Pending" -> Pending
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
DeleteWaiting,
FuotaDone,
FuotaSessionWaiting,
InFuotaSession,
Pending,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy