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

commonMain.aws.sdk.kotlin.services.databrew.model.SessionStatus.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.databrew.model

import kotlin.collections.List

public sealed class SessionStatus {

    public abstract val value: kotlin.String

    public object Assigned : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        override val value: kotlin.String = "ASSIGNED"
        override fun toString(): kotlin.String = value
    }

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

    public object Initializing : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        override val value: kotlin.String = "INITIALIZING"
        override fun toString(): kotlin.String = value
    }

    public object Provisioning : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        override val value: kotlin.String = "PROVISIONING"
        override fun toString(): kotlin.String = value
    }

    public object Ready : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        override val value: kotlin.String = "READY"
        override fun toString(): kotlin.String = value
    }

    public object Recycling : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        override val value: kotlin.String = "RECYCLING"
        override fun toString(): kotlin.String = value
    }

    public object Rotating : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        override val value: kotlin.String = "ROTATING"
        override fun toString(): kotlin.String = value
    }

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

    public object Terminating : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        override val value: kotlin.String = "TERMINATING"
        override fun toString(): kotlin.String = value
    }

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.databrew.model.SessionStatus() {
        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.databrew.model.SessionStatus = when(str) {
            "ASSIGNED" -> Assigned
            "FAILED" -> Failed
            "INITIALIZING" -> Initializing
            "PROVISIONING" -> Provisioning
            "READY" -> Ready
            "RECYCLING" -> Recycling
            "ROTATING" -> Rotating
            "TERMINATED" -> Terminated
            "TERMINATING" -> Terminating
            "UPDATING" -> Updating
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            Assigned,
            Failed,
            Initializing,
            Provisioning,
            Ready,
            Recycling,
            Rotating,
            Terminated,
            Terminating,
            Updating
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy