commonMain.aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import kotlin.collections.List
public sealed class SourceApiAssociationStatus {
public abstract val value: kotlin.String
public object AutoMergeScheduleFailed : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "AUTO_MERGE_SCHEDULE_FAILED"
override fun toString(): kotlin.String = "AutoMergeScheduleFailed"
}
public object DeletionFailed : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "DELETION_FAILED"
override fun toString(): kotlin.String = "DeletionFailed"
}
public object DeletionInProgress : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "DELETION_IN_PROGRESS"
override fun toString(): kotlin.String = "DeletionInProgress"
}
public object DeletionScheduled : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "DELETION_SCHEDULED"
override fun toString(): kotlin.String = "DeletionScheduled"
}
public object MergeFailed : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "MERGE_FAILED"
override fun toString(): kotlin.String = "MergeFailed"
}
public object MergeInProgress : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "MERGE_IN_PROGRESS"
override fun toString(): kotlin.String = "MergeInProgress"
}
public object MergeScheduled : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "MERGE_SCHEDULED"
override fun toString(): kotlin.String = "MergeScheduled"
}
public object MergeSuccess : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
override val value: kotlin.String = "MERGE_SUCCESS"
override fun toString(): kotlin.String = "MergeSuccess"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appsync.model.SourceApiAssociationStatus() {
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.appsync.model.SourceApiAssociationStatus = when (value) {
"AUTO_MERGE_SCHEDULE_FAILED" -> AutoMergeScheduleFailed
"DELETION_FAILED" -> DeletionFailed
"DELETION_IN_PROGRESS" -> DeletionInProgress
"DELETION_SCHEDULED" -> DeletionScheduled
"MERGE_FAILED" -> MergeFailed
"MERGE_IN_PROGRESS" -> MergeInProgress
"MERGE_SCHEDULED" -> MergeScheduled
"MERGE_SUCCESS" -> MergeSuccess
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
AutoMergeScheduleFailed,
DeletionFailed,
DeletionInProgress,
DeletionScheduled,
MergeFailed,
MergeInProgress,
MergeScheduled,
MergeSuccess,
)
}
}