commonMain.aws.sdk.kotlin.services.elasticsearchservice.model.PackageStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearchservice Show documentation
Show all versions of elasticsearchservice Show documentation
Amazon Elasticsearch Service
// 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