commonMain.aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoscalingplans-jvm Show documentation
Show all versions of autoscalingplans-jvm Show documentation
The AWS SDK for Kotlin client for Auto Scaling Plans
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.autoscalingplans.model
import kotlin.collections.List
public sealed class ScalingPlanStatusCode {
public abstract val value: kotlin.String
public object Active : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "Active"
override fun toString(): kotlin.String = "Active"
}
public object ActiveWithProblems : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "ActiveWithProblems"
override fun toString(): kotlin.String = "ActiveWithProblems"
}
public object CreationFailed : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "CreationFailed"
override fun toString(): kotlin.String = "CreationFailed"
}
public object CreationInProgress : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "CreationInProgress"
override fun toString(): kotlin.String = "CreationInProgress"
}
public object DeletionFailed : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "DeletionFailed"
override fun toString(): kotlin.String = "DeletionFailed"
}
public object DeletionInProgress : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "DeletionInProgress"
override fun toString(): kotlin.String = "DeletionInProgress"
}
public object UpdateFailed : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "UpdateFailed"
override fun toString(): kotlin.String = "UpdateFailed"
}
public object UpdateInProgress : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
override val value: kotlin.String = "UpdateInProgress"
override fun toString(): kotlin.String = "UpdateInProgress"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.autoscalingplans.model.ScalingPlanStatusCode() {
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.autoscalingplans.model.ScalingPlanStatusCode = when (value) {
"Active" -> Active
"ActiveWithProblems" -> ActiveWithProblems
"CreationFailed" -> CreationFailed
"CreationInProgress" -> CreationInProgress
"DeletionFailed" -> DeletionFailed
"DeletionInProgress" -> DeletionInProgress
"UpdateFailed" -> UpdateFailed
"UpdateInProgress" -> 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,
ActiveWithProblems,
CreationFailed,
CreationInProgress,
DeletionFailed,
DeletionInProgress,
UpdateFailed,
UpdateInProgress,
)
}
}