commonMain.aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import kotlin.collections.List
/**
* The status code.
*/
public sealed class StreamingImageStatusCode {
public abstract val value: kotlin.String
public object AccessDenied : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
override val value: kotlin.String = "ACCESS_DENIED"
override fun toString(): kotlin.String = "AccessDenied"
}
public object InternalError : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
override val value: kotlin.String = "INTERNAL_ERROR"
override fun toString(): kotlin.String = "InternalError"
}
public object StreamingImageCreateInProgress : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
override val value: kotlin.String = "STREAMING_IMAGE_CREATE_IN_PROGRESS"
override fun toString(): kotlin.String = "StreamingImageCreateInProgress"
}
public object StreamingImageDeleted : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
override val value: kotlin.String = "STREAMING_IMAGE_DELETED"
override fun toString(): kotlin.String = "StreamingImageDeleted"
}
public object StreamingImageDeleteInProgress : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
override val value: kotlin.String = "STREAMING_IMAGE_DELETE_IN_PROGRESS"
override fun toString(): kotlin.String = "StreamingImageDeleteInProgress"
}
public object StreamingImageReady : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
override val value: kotlin.String = "STREAMING_IMAGE_READY"
override fun toString(): kotlin.String = "StreamingImageReady"
}
public object StreamingImageUpdateInProgress : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
override val value: kotlin.String = "STREAMING_IMAGE_UPDATE_IN_PROGRESS"
override fun toString(): kotlin.String = "StreamingImageUpdateInProgress"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.nimble.model.StreamingImageStatusCode() {
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.nimble.model.StreamingImageStatusCode = when (value) {
"ACCESS_DENIED" -> AccessDenied
"INTERNAL_ERROR" -> InternalError
"STREAMING_IMAGE_CREATE_IN_PROGRESS" -> StreamingImageCreateInProgress
"STREAMING_IMAGE_DELETED" -> StreamingImageDeleted
"STREAMING_IMAGE_DELETE_IN_PROGRESS" -> StreamingImageDeleteInProgress
"STREAMING_IMAGE_READY" -> StreamingImageReady
"STREAMING_IMAGE_UPDATE_IN_PROGRESS" -> StreamingImageUpdateInProgress
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
AccessDenied,
InternalError,
StreamingImageCreateInProgress,
StreamingImageDeleted,
StreamingImageDeleteInProgress,
StreamingImageReady,
StreamingImageUpdateInProgress,
)
}
}