
commonMain.aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.swf.model
import kotlin.collections.List
public sealed class ContinueAsNewWorkflowExecutionFailedCause {
public abstract val value: kotlin.String
public object ContinueAsNewWorkflowExecutionRateExceeded : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED"
override fun toString(): kotlin.String = "ContinueAsNewWorkflowExecutionRateExceeded"
}
public object DefaultChildPolicyUndefined : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "DEFAULT_CHILD_POLICY_UNDEFINED"
override fun toString(): kotlin.String = "DefaultChildPolicyUndefined"
}
public object DefaultExecutionStartToCloseTimeoutUndefined : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED"
override fun toString(): kotlin.String = "DefaultExecutionStartToCloseTimeoutUndefined"
}
public object DefaultTaskListUndefined : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "DEFAULT_TASK_LIST_UNDEFINED"
override fun toString(): kotlin.String = "DefaultTaskListUndefined"
}
public object DefaultTaskStartToCloseTimeoutUndefined : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED"
override fun toString(): kotlin.String = "DefaultTaskStartToCloseTimeoutUndefined"
}
public object OperationNotPermitted : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "OPERATION_NOT_PERMITTED"
override fun toString(): kotlin.String = "OperationNotPermitted"
}
public object UnhandledDecision : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "UNHANDLED_DECISION"
override fun toString(): kotlin.String = "UnhandledDecision"
}
public object WorkflowTypeDeprecated : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "WORKFLOW_TYPE_DEPRECATED"
override fun toString(): kotlin.String = "WorkflowTypeDeprecated"
}
public object WorkflowTypeDoesNotExist : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
override val value: kotlin.String = "WORKFLOW_TYPE_DOES_NOT_EXIST"
override fun toString(): kotlin.String = "WorkflowTypeDoesNotExist"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.swf.model.ContinueAsNewWorkflowExecutionFailedCause() {
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.swf.model.ContinueAsNewWorkflowExecutionFailedCause = when (value) {
"CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED" -> ContinueAsNewWorkflowExecutionRateExceeded
"DEFAULT_CHILD_POLICY_UNDEFINED" -> DefaultChildPolicyUndefined
"DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED" -> DefaultExecutionStartToCloseTimeoutUndefined
"DEFAULT_TASK_LIST_UNDEFINED" -> DefaultTaskListUndefined
"DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED" -> DefaultTaskStartToCloseTimeoutUndefined
"OPERATION_NOT_PERMITTED" -> OperationNotPermitted
"UNHANDLED_DECISION" -> UnhandledDecision
"WORKFLOW_TYPE_DEPRECATED" -> WorkflowTypeDeprecated
"WORKFLOW_TYPE_DOES_NOT_EXIST" -> WorkflowTypeDoesNotExist
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
ContinueAsNewWorkflowExecutionRateExceeded,
DefaultChildPolicyUndefined,
DefaultExecutionStartToCloseTimeoutUndefined,
DefaultTaskListUndefined,
DefaultTaskStartToCloseTimeoutUndefined,
OperationNotPermitted,
UnhandledDecision,
WorkflowTypeDeprecated,
WorkflowTypeDoesNotExist,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy