commonMain.aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepipeline-jvm Show documentation
Show all versions of codepipeline-jvm Show documentation
The AWS SDK for Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
import kotlin.collections.List
public sealed class ConditionExecutionStatus {
public abstract val value: kotlin.String
public object Abandoned : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
override val value: kotlin.String = "Abandoned"
override fun toString(): kotlin.String = "Abandoned"
}
public object Cancelled : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
override val value: kotlin.String = "Cancelled"
override fun toString(): kotlin.String = "Cancelled"
}
public object Errored : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
override val value: kotlin.String = "Errored"
override fun toString(): kotlin.String = "Errored"
}
public object Failed : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
override val value: kotlin.String = "Failed"
override fun toString(): kotlin.String = "Failed"
}
public object InProgress : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
override val value: kotlin.String = "InProgress"
override fun toString(): kotlin.String = "InProgress"
}
public object Overridden : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
override val value: kotlin.String = "Overridden"
override fun toString(): kotlin.String = "Overridden"
}
public object Succeeded : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
override val value: kotlin.String = "Succeeded"
override fun toString(): kotlin.String = "Succeeded"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus() {
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.codepipeline.model.ConditionExecutionStatus = when (value) {
"Abandoned" -> Abandoned
"Cancelled" -> Cancelled
"Errored" -> Errored
"Failed" -> Failed
"InProgress" -> InProgress
"Overridden" -> Overridden
"Succeeded" -> Succeeded
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Abandoned,
Cancelled,
Errored,
Failed,
InProgress,
Overridden,
Succeeded,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy