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

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

There is a newer version: 1.3.76
Show 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 FederationSourceErrorCode {
    public abstract val value: kotlin.String

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.FederationSourceErrorCode() {
        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.FederationSourceErrorCode = when (value) {
            "AccessDeniedException" -> AccessDeniedException
            "EntityNotFoundException" -> EntityNotFoundException
            "InternalServiceException" -> InternalServiceException
            "InvalidCredentialsException" -> InvalidCredentialsException
            "InvalidInputException" -> InvalidInputException
            "InvalidResponseException" -> InvalidResponseException
            "OperationNotSupportedException" -> OperationNotSupportedException
            "OperationTimeoutException" -> OperationTimeoutException
            "PartialFailureException" -> PartialFailureException
            "ThrottlingException" -> ThrottlingException
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            AccessDeniedException,
            EntityNotFoundException,
            InternalServiceException,
            InvalidCredentialsException,
            InvalidInputException,
            InvalidResponseException,
            OperationNotSupportedException,
            OperationTimeoutException,
            PartialFailureException,
            ThrottlingException,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy