commonMain.aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshiftdata Show documentation
Show all versions of redshiftdata Show documentation
The AWS Kotlin client for Redshift Data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.redshiftdata.model
import kotlin.collections.List
public sealed class StatementStatusString {
public abstract val value: kotlin.String
public object Aborted : aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString() {
override val value: kotlin.String = "ABORTED"
override fun toString(): kotlin.String = value
}
public object Failed : aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = value
}
public object Finished : aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString() {
override val value: kotlin.String = "FINISHED"
override fun toString(): kotlin.String = value
}
public object Picked : aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString() {
override val value: kotlin.String = "PICKED"
override fun toString(): kotlin.String = value
}
public object Started : aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString() {
override val value: kotlin.String = "STARTED"
override fun toString(): kotlin.String = value
}
public object Submitted : aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString() {
override val value: kotlin.String = "SUBMITTED"
override fun toString(): kotlin.String = value
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString() {
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.redshiftdata.model.StatementStatusString = when(str) {
"ABORTED" -> Aborted
"FAILED" -> Failed
"FINISHED" -> Finished
"PICKED" -> Picked
"STARTED" -> Started
"SUBMITTED" -> Submitted
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = listOf(
Aborted,
Failed,
Finished,
Picked,
Started,
Submitted
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy