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

commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName.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.snowdevicemanagement.model

import kotlin.collections.List

public sealed class InstanceStateName {

    public abstract val value: kotlin.String

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

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

    public object ShuttingDown : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
        override val value: kotlin.String = "SHUTTING_DOWN"
        override fun toString(): kotlin.String = value
    }

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

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

    public object Terminated : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
        override val value: kotlin.String = "TERMINATED"
        override fun toString(): kotlin.String = value
    }

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

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName = when(str) {
            "PENDING" -> Pending
            "RUNNING" -> Running
            "SHUTTING_DOWN" -> ShuttingDown
            "STOPPED" -> Stopped
            "STOPPING" -> Stopping
            "TERMINATED" -> Terminated
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            Pending,
            Running,
            ShuttingDown,
            Stopped,
            Stopping,
            Terminated
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy