commonMain.aws.sdk.kotlin.services.neptunegraph.model.UnprocessableExceptionReason.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.neptunegraph.model
import kotlin.collections.List
public sealed class UnprocessableExceptionReason {
public abstract val value: kotlin.String
public object InternalLimitExceeded : aws.sdk.kotlin.services.neptunegraph.model.UnprocessableExceptionReason() {
override val value: kotlin.String = "INTERNAL_LIMIT_EXCEEDED"
override fun toString(): kotlin.String = "InternalLimitExceeded"
}
public object MemoryLimitExceeded : aws.sdk.kotlin.services.neptunegraph.model.UnprocessableExceptionReason() {
override val value: kotlin.String = "MEMORY_LIMIT_EXCEEDED"
override fun toString(): kotlin.String = "MemoryLimitExceeded"
}
public object PartitionFull : aws.sdk.kotlin.services.neptunegraph.model.UnprocessableExceptionReason() {
override val value: kotlin.String = "PARTITION_FULL"
override fun toString(): kotlin.String = "PartitionFull"
}
public object QueryTimeout : aws.sdk.kotlin.services.neptunegraph.model.UnprocessableExceptionReason() {
override val value: kotlin.String = "QUERY_TIMEOUT"
override fun toString(): kotlin.String = "QueryTimeout"
}
public object StorageLimitExceeded : aws.sdk.kotlin.services.neptunegraph.model.UnprocessableExceptionReason() {
override val value: kotlin.String = "STORAGE_LIMIT_EXCEEDED"
override fun toString(): kotlin.String = "StorageLimitExceeded"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.neptunegraph.model.UnprocessableExceptionReason() {
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.neptunegraph.model.UnprocessableExceptionReason = when (value) {
"INTERNAL_LIMIT_EXCEEDED" -> InternalLimitExceeded
"MEMORY_LIMIT_EXCEEDED" -> MemoryLimitExceeded
"PARTITION_FULL" -> PartitionFull
"QUERY_TIMEOUT" -> QueryTimeout
"STORAGE_LIMIT_EXCEEDED" -> StorageLimitExceeded
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
InternalLimitExceeded,
MemoryLimitExceeded,
PartitionFull,
QueryTimeout,
StorageLimitExceeded,
)
}
}