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

commonMain.aws.sdk.kotlin.services.outposts.model.OrderStatus.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.outposts.model

import kotlin.collections.List

public sealed class OrderStatus {
    public abstract val value: kotlin.String

    public object Cancelled : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "CANCELLED"
        override fun toString(): kotlin.String = "Cancelled"
    }

    public object Completed : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "COMPLETED"
        override fun toString(): kotlin.String = "Completed"
    }

    public object Delivered : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "DELIVERED"
        override fun toString(): kotlin.String = "Delivered"
    }

    public object Error : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "ERROR"
        override fun toString(): kotlin.String = "Error"
    }

    public object Fulfilled : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "FULFILLED"
        override fun toString(): kotlin.String = "Fulfilled"
    }

    public object Installing : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "INSTALLING"
        override fun toString(): kotlin.String = "Installing"
    }

    public object InProgress : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "IN_PROGRESS"
        override fun toString(): kotlin.String = "InProgress"
    }

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

    public object Preparing : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "PREPARING"
        override fun toString(): kotlin.String = "Preparing"
    }

    public object Processing : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "PROCESSING"
        override fun toString(): kotlin.String = "Processing"
    }

    public object Received : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override val value: kotlin.String = "RECEIVED"
        override fun toString(): kotlin.String = "Received"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.outposts.model.OrderStatus() {
        override fun toString(): kotlin.String = "SdkUnknown($value)"
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.outposts.model.OrderStatus = when (value) {
            "CANCELLED" -> Cancelled
            "COMPLETED" -> Completed
            "DELIVERED" -> Delivered
            "ERROR" -> Error
            "FULFILLED" -> Fulfilled
            "INSTALLING" -> Installing
            "IN_PROGRESS" -> InProgress
            "PENDING" -> Pending
            "PREPARING" -> Preparing
            "PROCESSING" -> Processing
            "RECEIVED" -> Received
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Cancelled,
            Completed,
            Delivered,
            Error,
            Fulfilled,
            Installing,
            InProgress,
            Pending,
            Preparing,
            Processing,
            Received,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy