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

commonMain.aws.sdk.kotlin.services.redshiftdata.model.StatementStatusString.kt Maven / Gradle / Ivy

There is a newer version: 1.3.100
Show newest version
// 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