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

commonMain.aws.sdk.kotlin.services.appstream.model.ImageBuilderState.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.appstream.model

import kotlin.collections.List

sealed class ImageBuilderState {

    abstract val value: kotlin.String

    object Deleting : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "DELETING"
        override fun toString(): kotlin.String = value
    }

    object Failed : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "FAILED"
        override fun toString(): kotlin.String = value
    }

    object Pending : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "PENDING"
        override fun toString(): kotlin.String = value
    }

    object PendingQualification : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "PENDING_QUALIFICATION"
        override fun toString(): kotlin.String = value
    }

    object Rebooting : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "REBOOTING"
        override fun toString(): kotlin.String = value
    }

    object Running : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "RUNNING"
        override fun toString(): kotlin.String = value
    }

    object Snapshotting : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "SNAPSHOTTING"
        override fun toString(): kotlin.String = value
    }

    object Stopped : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "STOPPED"
        override fun toString(): kotlin.String = value
    }

    object Stopping : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "STOPPING"
        override fun toString(): kotlin.String = value
    }

    object Updating : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "UPDATING"
        override fun toString(): kotlin.String = value
    }

    object UpdatingAgent : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override val value: kotlin.String = "UPDATING_AGENT"
        override fun toString(): kotlin.String = value
    }

    data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        override fun toString(): kotlin.String = value
    }

    companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.appstream.model.ImageBuilderState = when(str) {
            "DELETING" -> Deleting
            "FAILED" -> Failed
            "PENDING" -> Pending
            "PENDING_QUALIFICATION" -> PendingQualification
            "REBOOTING" -> Rebooting
            "RUNNING" -> Running
            "SNAPSHOTTING" -> Snapshotting
            "STOPPED" -> Stopped
            "STOPPING" -> Stopping
            "UPDATING" -> Updating
            "UPDATING_AGENT" -> UpdatingAgent
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        fun values(): kotlin.collections.List = listOf(
            Deleting,
            Failed,
            Pending,
            PendingQualification,
            Rebooting,
            Running,
            Snapshotting,
            Stopped,
            Stopping,
            Updating,
            UpdatingAgent
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy