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