commonMain.aws.sdk.kotlin.services.databrew.model.SessionStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// 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