aws.sdk.kotlin.services.sagemaker.model.TargetPlatformAccelerator.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
sealed class TargetPlatformAccelerator {
abstract val value: kotlin.String
object IntelGraphics : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformAccelerator() {
override val value: kotlin.String = "INTEL_GRAPHICS"
override fun toString(): kotlin.String = value
}
object Mali : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformAccelerator() {
override val value: kotlin.String = "MALI"
override fun toString(): kotlin.String = value
}
object Nvidia : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformAccelerator() {
override val value: kotlin.String = "NVIDIA"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformAccelerator() {
override fun toString(): kotlin.String = value
}
companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.sagemaker.model.TargetPlatformAccelerator = when(str) {
"INTEL_GRAPHICS" -> IntelGraphics
"MALI" -> Mali
"NVIDIA" -> Nvidia
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): kotlin.collections.List = listOf(
IntelGraphics,
Mali,
Nvidia
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy