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

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appstream.model

import kotlin.collections.List

public sealed class ImageBuilderState {
    public abstract val value: kotlin.String

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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appstream.model.ImageBuilderState() {
        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.appstream.model.ImageBuilderState = when (value) {
            "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(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Deleting,
            Failed,
            Pending,
            PendingQualification,
            Rebooting,
            Running,
            Snapshotting,
            Stopped,
            Stopping,
            Updating,
            UpdatingAgent,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy