aws.sdk.kotlin.services.sagemaker.model.TargetPlatformArch.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.model
sealed class TargetPlatformArch {
abstract val value: kotlin.String
object Arm64 : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformArch() {
override val value: kotlin.String = "ARM64"
override fun toString(): kotlin.String = value
}
object ArmEabi : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformArch() {
override val value: kotlin.String = "ARM_EABI"
override fun toString(): kotlin.String = value
}
object ArmEabihf : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformArch() {
override val value: kotlin.String = "ARM_EABIHF"
override fun toString(): kotlin.String = value
}
object X86 : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformArch() {
override val value: kotlin.String = "X86"
override fun toString(): kotlin.String = value
}
object X86_64 : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformArch() {
override val value: kotlin.String = "X86_64"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.sagemaker.model.TargetPlatformArch() {
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.TargetPlatformArch = when(str) {
"ARM64" -> Arm64
"ARM_EABI" -> ArmEabi
"ARM_EABIHF" -> ArmEabihf
"X86" -> X86
"X86_64" -> X86_64
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): kotlin.collections.List = listOf(
Arm64,
ArmEabi,
ArmEabihf,
X86,
X86_64
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy