commonMain.aws.sdk.kotlin.services.connect.model.VocabularyState.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
import kotlin.collections.List
public sealed class VocabularyState {
public abstract val value: kotlin.String
public object Active : aws.sdk.kotlin.services.connect.model.VocabularyState() {
override val value: kotlin.String = "ACTIVE"
override fun toString(): kotlin.String = "Active"
}
public object CreationFailed : aws.sdk.kotlin.services.connect.model.VocabularyState() {
override val value: kotlin.String = "CREATION_FAILED"
override fun toString(): kotlin.String = "CreationFailed"
}
public object CreationInProgress : aws.sdk.kotlin.services.connect.model.VocabularyState() {
override val value: kotlin.String = "CREATION_IN_PROGRESS"
override fun toString(): kotlin.String = "CreationInProgress"
}
public object DeleteInProgress : aws.sdk.kotlin.services.connect.model.VocabularyState() {
override val value: kotlin.String = "DELETE_IN_PROGRESS"
override fun toString(): kotlin.String = "DeleteInProgress"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.connect.model.VocabularyState() {
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.connect.model.VocabularyState = when (value) {
"ACTIVE" -> Active
"CREATION_FAILED" -> CreationFailed
"CREATION_IN_PROGRESS" -> CreationInProgress
"DELETE_IN_PROGRESS" -> DeleteInProgress
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Active,
CreationFailed,
CreationInProgress,
DeleteInProgress,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy