commonMain.aws.sdk.kotlin.services.devicefarm.model.DeviceAvailability.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import kotlin.collections.List
public sealed class DeviceAvailability {
public abstract val value: kotlin.String
public object Available : aws.sdk.kotlin.services.devicefarm.model.DeviceAvailability() {
override val value: kotlin.String = "AVAILABLE"
override fun toString(): kotlin.String = "Available"
}
public object Busy : aws.sdk.kotlin.services.devicefarm.model.DeviceAvailability() {
override val value: kotlin.String = "BUSY"
override fun toString(): kotlin.String = "Busy"
}
public object HighlyAvailable : aws.sdk.kotlin.services.devicefarm.model.DeviceAvailability() {
override val value: kotlin.String = "HIGHLY_AVAILABLE"
override fun toString(): kotlin.String = "HighlyAvailable"
}
public object TemporaryNotAvailable : aws.sdk.kotlin.services.devicefarm.model.DeviceAvailability() {
override val value: kotlin.String = "TEMPORARY_NOT_AVAILABLE"
override fun toString(): kotlin.String = "TemporaryNotAvailable"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.devicefarm.model.DeviceAvailability() {
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.devicefarm.model.DeviceAvailability = when (value) {
"AVAILABLE" -> Available
"BUSY" -> Busy
"HIGHLY_AVAILABLE" -> HighlyAvailable
"TEMPORARY_NOT_AVAILABLE" -> TemporaryNotAvailable
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Available,
Busy,
HighlyAvailable,
TemporaryNotAvailable,
)
}
}