commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowdevicemanagement-jvm Show documentation
Show all versions of snowdevicemanagement-jvm Show documentation
The AWS SDK for Kotlin client for Snow Device Management
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowdevicemanagement.model
import kotlin.collections.List
public sealed class InstanceStateName {
public abstract val value: kotlin.String
public object Pending : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
override val value: kotlin.String = "PENDING"
override fun toString(): kotlin.String = "Pending"
}
public object Running : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
override val value: kotlin.String = "RUNNING"
override fun toString(): kotlin.String = "Running"
}
public object ShuttingDown : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
override val value: kotlin.String = "SHUTTING_DOWN"
override fun toString(): kotlin.String = "ShuttingDown"
}
public object Stopped : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
override val value: kotlin.String = "STOPPED"
override fun toString(): kotlin.String = "Stopped"
}
public object Stopping : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
override val value: kotlin.String = "STOPPING"
override fun toString(): kotlin.String = "Stopping"
}
public object Terminated : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
override val value: kotlin.String = "TERMINATED"
override fun toString(): kotlin.String = "Terminated"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.snowdevicemanagement.model.InstanceStateName() {
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.snowdevicemanagement.model.InstanceStateName = when (value) {
"PENDING" -> Pending
"RUNNING" -> Running
"SHUTTING_DOWN" -> ShuttingDown
"STOPPED" -> Stopped
"STOPPING" -> Stopping
"TERMINATED" -> Terminated
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Pending,
Running,
ShuttingDown,
Stopped,
Stopping,
Terminated,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy