commonMain.aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode.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 current status of the studio component resource.
*
* When the resource is in the `READY` state, the status code signals what the last mutation made to the resource was.
*
* When the resource is in a `CREATE_FAILED`, `UPDATE_FAILED`, or `DELETE_FAILED` state, the status code signals what went wrong and why the mutation failed.
*/
public sealed class StudioComponentStatusCode {
public abstract val value: kotlin.String
public object ActiveDirectoryAlreadyExists : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "ACTIVE_DIRECTORY_ALREADY_EXISTS"
override fun toString(): kotlin.String = "ActiveDirectoryAlreadyExists"
}
public object EncryptionKeyAccessDenied : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "ENCRYPTION_KEY_ACCESS_DENIED"
override fun toString(): kotlin.String = "EncryptionKeyAccessDenied"
}
public object EncryptionKeyNotFound : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "ENCRYPTION_KEY_NOT_FOUND"
override fun toString(): kotlin.String = "EncryptionKeyNotFound"
}
public object InternalError : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "INTERNAL_ERROR"
override fun toString(): kotlin.String = "InternalError"
}
public object StudioComponentCreated : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "STUDIO_COMPONENT_CREATED"
override fun toString(): kotlin.String = "StudioComponentCreated"
}
public object StudioComponentCreateInProgress : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "STUDIO_COMPONENT_CREATE_IN_PROGRESS"
override fun toString(): kotlin.String = "StudioComponentCreateInProgress"
}
public object StudioComponentDeleted : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "STUDIO_COMPONENT_DELETED"
override fun toString(): kotlin.String = "StudioComponentDeleted"
}
public object StudioComponentDeleteInProgress : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "STUDIO_COMPONENT_DELETE_IN_PROGRESS"
override fun toString(): kotlin.String = "StudioComponentDeleteInProgress"
}
public object StudioComponentUpdated : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "STUDIO_COMPONENT_UPDATED"
override fun toString(): kotlin.String = "StudioComponentUpdated"
}
public object StudioComponentUpdateInProgress : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
override val value: kotlin.String = "STUDIO_COMPONENT_UPDATE_IN_PROGRESS"
override fun toString(): kotlin.String = "StudioComponentUpdateInProgress"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.nimble.model.StudioComponentStatusCode() {
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.StudioComponentStatusCode = when (value) {
"ACTIVE_DIRECTORY_ALREADY_EXISTS" -> ActiveDirectoryAlreadyExists
"ENCRYPTION_KEY_ACCESS_DENIED" -> EncryptionKeyAccessDenied
"ENCRYPTION_KEY_NOT_FOUND" -> EncryptionKeyNotFound
"INTERNAL_ERROR" -> InternalError
"STUDIO_COMPONENT_CREATED" -> StudioComponentCreated
"STUDIO_COMPONENT_CREATE_IN_PROGRESS" -> StudioComponentCreateInProgress
"STUDIO_COMPONENT_DELETED" -> StudioComponentDeleted
"STUDIO_COMPONENT_DELETE_IN_PROGRESS" -> StudioComponentDeleteInProgress
"STUDIO_COMPONENT_UPDATED" -> StudioComponentUpdated
"STUDIO_COMPONENT_UPDATE_IN_PROGRESS" -> StudioComponentUpdateInProgress
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
ActiveDirectoryAlreadyExists,
EncryptionKeyAccessDenied,
EncryptionKeyNotFound,
InternalError,
StudioComponentCreated,
StudioComponentCreateInProgress,
StudioComponentDeleted,
StudioComponentDeleteInProgress,
StudioComponentUpdated,
StudioComponentUpdateInProgress,
)
}
}