commonMain.aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import kotlin.collections.List
public sealed class LifecycleErrorCode {
public abstract val value: kotlin.String
public object ScriptFailed : aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode() {
override val value: kotlin.String = "ScriptFailed"
override fun toString(): kotlin.String = "ScriptFailed"
}
public object ScriptMissing : aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode() {
override val value: kotlin.String = "ScriptMissing"
override fun toString(): kotlin.String = "ScriptMissing"
}
public object ScriptNotExecutable : aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode() {
override val value: kotlin.String = "ScriptNotExecutable"
override fun toString(): kotlin.String = "ScriptNotExecutable"
}
public object ScriptTimedOut : aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode() {
override val value: kotlin.String = "ScriptTimedOut"
override fun toString(): kotlin.String = "ScriptTimedOut"
}
public object Success : aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode() {
override val value: kotlin.String = "Success"
override fun toString(): kotlin.String = "Success"
}
public object UnknownError : aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode() {
override val value: kotlin.String = "UnknownError"
override fun toString(): kotlin.String = "UnknownError"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.codedeploy.model.LifecycleErrorCode() {
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.codedeploy.model.LifecycleErrorCode = when (value) {
"ScriptFailed" -> ScriptFailed
"ScriptMissing" -> ScriptMissing
"ScriptNotExecutable" -> ScriptNotExecutable
"ScriptTimedOut" -> ScriptTimedOut
"Success" -> Success
"UnknownError" -> UnknownError
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
ScriptFailed,
ScriptMissing,
ScriptNotExecutable,
ScriptTimedOut,
Success,
UnknownError,
)
}
}