commonMain.aws.sdk.kotlin.services.autoscaling.model.AcceleratorName.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoscaling-jvm Show documentation
Show all versions of autoscaling-jvm Show documentation
The AWS SDK for Kotlin client for Auto Scaling
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.autoscaling.model
import kotlin.collections.List
public sealed class AcceleratorName {
public abstract val value: kotlin.String
public object A100 : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
override val value: kotlin.String = "a100"
override fun toString(): kotlin.String = "A100"
}
public object K80 : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
override val value: kotlin.String = "k80"
override fun toString(): kotlin.String = "K80"
}
public object M60 : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
override val value: kotlin.String = "m60"
override fun toString(): kotlin.String = "M60"
}
public object RadeonProV520 : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
override val value: kotlin.String = "radeon-pro-v520"
override fun toString(): kotlin.String = "RadeonProV520"
}
public object T4 : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
override val value: kotlin.String = "t4"
override fun toString(): kotlin.String = "T4"
}
public object V100 : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
override val value: kotlin.String = "v100"
override fun toString(): kotlin.String = "V100"
}
public object Vu9P : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
override val value: kotlin.String = "vu9p"
override fun toString(): kotlin.String = "Vu9P"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.autoscaling.model.AcceleratorName() {
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.autoscaling.model.AcceleratorName = when (value) {
"a100" -> A100
"k80" -> K80
"m60" -> M60
"radeon-pro-v520" -> RadeonProV520
"t4" -> T4
"v100" -> V100
"vu9p" -> Vu9P
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
A100,
K80,
M60,
RadeonProV520,
T4,
V100,
Vu9P,
)
}
}