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

commonMain.aws.sdk.kotlin.services.iotwireless.model.FuotaDeviceStatus.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 status of a wireless device in a FUOTA task.
 */
public sealed class FuotaDeviceStatus {
    public abstract val value: kotlin.String

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

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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.iotwireless.model.FuotaDeviceStatus() {
        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.FuotaDeviceStatus = when (value) {
            "Device_exist_in_conflict_fuota_task" -> DeviceExistInConflictFuotaTask
            "FragAlgo_unsupported" -> FragAlgoUnsupported
            "FragIndex_unsupported" -> FragIndexUnsupported
            "Initial" -> Initial
            "MICError" -> MicError
            "MemoryError" -> MemoryError
            "MissingFrag" -> MissingFrag
            "Not_enough_memory" -> NotEnoughMemory
            "Package_Not_Supported" -> PackageNotSupported
            "SessionCnt_replay" -> SessionCntReplay
            "Successful" -> Successful
            "Wrong_descriptor" -> WrongDescriptor
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            DeviceExistInConflictFuotaTask,
            FragAlgoUnsupported,
            FragIndexUnsupported,
            Initial,
            MicError,
            MemoryError,
            MissingFrag,
            NotEnoughMemory,
            PackageNotSupported,
            SessionCntReplay,
            Successful,
            WrongDescriptor,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy