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

commonMain.aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.4.1
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.elasticsearchservice.model

import kotlin.collections.List

public sealed class PackageStatus {

    public abstract val value: kotlin.String

    public object Available : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "AVAILABLE"
        override fun toString(): kotlin.String = value
    }

    public object Copying : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "COPYING"
        override fun toString(): kotlin.String = value
    }

    public object CopyFailed : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "COPY_FAILED"
        override fun toString(): kotlin.String = value
    }

    public object Deleted : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "DELETED"
        override fun toString(): kotlin.String = value
    }

    public object DeleteFailed : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "DELETE_FAILED"
        override fun toString(): kotlin.String = value
    }

    public object Deleting : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "DELETING"
        override fun toString(): kotlin.String = value
    }

    public object Validating : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "VALIDATING"
        override fun toString(): kotlin.String = value
    }

    public object ValidationFailed : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        override val value: kotlin.String = "VALIDATION_FAILED"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus() {
        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.elasticsearchservice.model.PackageStatus = when(str) {
            "AVAILABLE" -> Available
            "COPYING" -> Copying
            "COPY_FAILED" -> CopyFailed
            "DELETED" -> Deleted
            "DELETE_FAILED" -> DeleteFailed
            "DELETING" -> Deleting
            "VALIDATING" -> Validating
            "VALIDATION_FAILED" -> ValidationFailed
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            Available,
            Copying,
            CopyFailed,
            Deleted,
            DeleteFailed,
            Deleting,
            Validating,
            ValidationFailed
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy