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