commonMain.aws.sdk.kotlin.services.proton.model.ServiceStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import kotlin.collections.List
public sealed class ServiceStatus {
public abstract val value: kotlin.String
public object Active : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "ACTIVE"
override fun toString(): kotlin.String = "Active"
}
public object CreateFailed : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "CREATE_FAILED"
override fun toString(): kotlin.String = "CreateFailed"
}
public object CreateFailedCleanupComplete : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "CREATE_FAILED_CLEANUP_COMPLETE"
override fun toString(): kotlin.String = "CreateFailedCleanupComplete"
}
public object CreateFailedCleanupFailed : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "CREATE_FAILED_CLEANUP_FAILED"
override fun toString(): kotlin.String = "CreateFailedCleanupFailed"
}
public object CreateFailedCleanupInProgress : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "CREATE_FAILED_CLEANUP_IN_PROGRESS"
override fun toString(): kotlin.String = "CreateFailedCleanupInProgress"
}
public object CreateInProgress : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "CREATE_IN_PROGRESS"
override fun toString(): kotlin.String = "CreateInProgress"
}
public object DeleteFailed : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "DELETE_FAILED"
override fun toString(): kotlin.String = "DeleteFailed"
}
public object DeleteInProgress : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "DELETE_IN_PROGRESS"
override fun toString(): kotlin.String = "DeleteInProgress"
}
public object UpdateCompleteCleanupFailed : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "UPDATE_COMPLETE_CLEANUP_FAILED"
override fun toString(): kotlin.String = "UpdateCompleteCleanupFailed"
}
public object UpdateFailed : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "UPDATE_FAILED"
override fun toString(): kotlin.String = "UpdateFailed"
}
public object UpdateFailedCleanupComplete : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "UPDATE_FAILED_CLEANUP_COMPLETE"
override fun toString(): kotlin.String = "UpdateFailedCleanupComplete"
}
public object UpdateFailedCleanupFailed : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "UPDATE_FAILED_CLEANUP_FAILED"
override fun toString(): kotlin.String = "UpdateFailedCleanupFailed"
}
public object UpdateFailedCleanupInProgress : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "UPDATE_FAILED_CLEANUP_IN_PROGRESS"
override fun toString(): kotlin.String = "UpdateFailedCleanupInProgress"
}
public object UpdateInProgress : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
override val value: kotlin.String = "UPDATE_IN_PROGRESS"
override fun toString(): kotlin.String = "UpdateInProgress"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.proton.model.ServiceStatus() {
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.proton.model.ServiceStatus = when (value) {
"ACTIVE" -> Active
"CREATE_FAILED" -> CreateFailed
"CREATE_FAILED_CLEANUP_COMPLETE" -> CreateFailedCleanupComplete
"CREATE_FAILED_CLEANUP_FAILED" -> CreateFailedCleanupFailed
"CREATE_FAILED_CLEANUP_IN_PROGRESS" -> CreateFailedCleanupInProgress
"CREATE_IN_PROGRESS" -> CreateInProgress
"DELETE_FAILED" -> DeleteFailed
"DELETE_IN_PROGRESS" -> DeleteInProgress
"UPDATE_COMPLETE_CLEANUP_FAILED" -> UpdateCompleteCleanupFailed
"UPDATE_FAILED" -> UpdateFailed
"UPDATE_FAILED_CLEANUP_COMPLETE" -> UpdateFailedCleanupComplete
"UPDATE_FAILED_CLEANUP_FAILED" -> UpdateFailedCleanupFailed
"UPDATE_FAILED_CLEANUP_IN_PROGRESS" -> UpdateFailedCleanupInProgress
"UPDATE_IN_PROGRESS" -> UpdateInProgress
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,
CreateFailed,
CreateFailedCleanupComplete,
CreateFailedCleanupFailed,
CreateFailedCleanupInProgress,
CreateInProgress,
DeleteFailed,
DeleteInProgress,
UpdateCompleteCleanupFailed,
UpdateFailed,
UpdateFailedCleanupComplete,
UpdateFailedCleanupFailed,
UpdateFailedCleanupInProgress,
UpdateInProgress,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy