All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.model.BackfillErrorCode.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.model

import kotlin.collections.List

public sealed class BackfillErrorCode {
    public abstract val value: kotlin.String

    public object EncryptedPartitionError : aws.sdk.kotlin.services.glue.model.BackfillErrorCode() {
        override val value: kotlin.String = "ENCRYPTED_PARTITION_ERROR"
        override fun toString(): kotlin.String = "EncryptedPartitionError"
    }

    public object InternalError : aws.sdk.kotlin.services.glue.model.BackfillErrorCode() {
        override val value: kotlin.String = "INTERNAL_ERROR"
        override fun toString(): kotlin.String = "InternalError"
    }

    public object InvalidPartitionTypeDataError : aws.sdk.kotlin.services.glue.model.BackfillErrorCode() {
        override val value: kotlin.String = "INVALID_PARTITION_TYPE_DATA_ERROR"
        override fun toString(): kotlin.String = "InvalidPartitionTypeDataError"
    }

    public object MissingPartitionValueError : aws.sdk.kotlin.services.glue.model.BackfillErrorCode() {
        override val value: kotlin.String = "MISSING_PARTITION_VALUE_ERROR"
        override fun toString(): kotlin.String = "MissingPartitionValueError"
    }

    public object UnsupportedPartitionCharacterError : aws.sdk.kotlin.services.glue.model.BackfillErrorCode() {
        override val value: kotlin.String = "UNSUPPORTED_PARTITION_CHARACTER_ERROR"
        override fun toString(): kotlin.String = "UnsupportedPartitionCharacterError"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.BackfillErrorCode() {
        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.glue.model.BackfillErrorCode = when (value) {
            "ENCRYPTED_PARTITION_ERROR" -> EncryptedPartitionError
            "INTERNAL_ERROR" -> InternalError
            "INVALID_PARTITION_TYPE_DATA_ERROR" -> InvalidPartitionTypeDataError
            "MISSING_PARTITION_VALUE_ERROR" -> MissingPartitionValueError
            "UNSUPPORTED_PARTITION_CHARACTER_ERROR" -> UnsupportedPartitionCharacterError
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            EncryptedPartitionError,
            InternalError,
            InvalidPartitionTypeDataError,
            MissingPartitionValueError,
            UnsupportedPartitionCharacterError,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy