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