commonMain.aws.sdk.kotlin.services.finspacedata.model.UserStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata Show documentation
Show all versions of finspacedata Show documentation
The AWS Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
import kotlin.collections.List
public sealed class UserStatus {
public abstract val value: kotlin.String
public object Creating : aws.sdk.kotlin.services.finspacedata.model.UserStatus() {
override val value: kotlin.String = "CREATING"
override fun toString(): kotlin.String = value
}
public object Disabled : aws.sdk.kotlin.services.finspacedata.model.UserStatus() {
override val value: kotlin.String = "DISABLED"
override fun toString(): kotlin.String = value
}
public object Enabled : aws.sdk.kotlin.services.finspacedata.model.UserStatus() {
override val value: kotlin.String = "ENABLED"
override fun toString(): kotlin.String = value
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.finspacedata.model.UserStatus() {
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.finspacedata.model.UserStatus = when(str) {
"CREATING" -> Creating
"DISABLED" -> Disabled
"ENABLED" -> Enabled
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = listOf(
Creating,
Disabled,
Enabled
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy