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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pinpointsmsvoicev2.model

import kotlin.collections.List

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

    public object CreateRegistrationVersionNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "CREATE_REGISTRATION_VERSION_NOT_ALLOWED"
        override fun toString(): kotlin.String = "CreateRegistrationVersionNotAllowed"
    }

    public object DeletionProtectionEnabled : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "DELETION_PROTECTION_ENABLED"
        override fun toString(): kotlin.String = "DeletionProtectionEnabled"
    }

    public object DestinationCountryBlockedByProtectConfiguration : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION"
        override fun toString(): kotlin.String = "DestinationCountryBlockedByProtectConfiguration"
    }

    public object DestinationPhoneNumberNotVerified : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "DESTINATION_PHONE_NUMBER_NOT_VERIFIED"
        override fun toString(): kotlin.String = "DestinationPhoneNumberNotVerified"
    }

    public object DestinationPhoneNumberOptedOut : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "DESTINATION_PHONE_NUMBER_OPTED_OUT"
        override fun toString(): kotlin.String = "DestinationPhoneNumberOptedOut"
    }

    public object DisassociateRegistrationNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "DISASSOCIATE_REGISTRATION_NOT_ALLOWED"
        override fun toString(): kotlin.String = "DisassociateRegistrationNotAllowed"
    }

    public object DiscardRegistrationVersionNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED"
        override fun toString(): kotlin.String = "DiscardRegistrationVersionNotAllowed"
    }

    public object EditRegistrationFieldValuesNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED"
        override fun toString(): kotlin.String = "EditRegistrationFieldValuesNotAllowed"
    }

    public object EventDestinationMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "EVENT_DESTINATION_MISMATCH"
        override fun toString(): kotlin.String = "EventDestinationMismatch"
    }

    public object KeywordMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "KEYWORD_MISMATCH"
        override fun toString(): kotlin.String = "KeywordMismatch"
    }

    public object LastPhoneNumber : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "LAST_PHONE_NUMBER"
        override fun toString(): kotlin.String = "LastPhoneNumber"
    }

    public object MessageTypeMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "MESSAGE_TYPE_MISMATCH"
        override fun toString(): kotlin.String = "MessageTypeMismatch"
    }

    public object NoOriginationIdentitiesFound : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "NO_ORIGINATION_IDENTITIES_FOUND"
        override fun toString(): kotlin.String = "NoOriginationIdentitiesFound"
    }

    public object NumberCapabilitiesMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "NUMBER_CAPABILITIES_MISMATCH"
        override fun toString(): kotlin.String = "NumberCapabilitiesMismatch"
    }

    public object OptOutListMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "OPT_OUT_LIST_MISMATCH"
        override fun toString(): kotlin.String = "OptOutListMismatch"
    }

    public object PhoneNumberAssociatedToPool : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBER_ASSOCIATED_TO_POOL"
        override fun toString(): kotlin.String = "PhoneNumberAssociatedToPool"
    }

    public object PhoneNumberAssociatedToRegistration : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION"
        override fun toString(): kotlin.String = "PhoneNumberAssociatedToRegistration"
    }

    public object PhoneNumberNotAssociatedToPool : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL"
        override fun toString(): kotlin.String = "PhoneNumberNotAssociatedToPool"
    }

    public object PhoneNumberNotInRegistrationRegion : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION"
        override fun toString(): kotlin.String = "PhoneNumberNotInRegistrationRegion"
    }

    public object ProtectConfigurationAssociatedWithConfigurationSet : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET"
        override fun toString(): kotlin.String = "ProtectConfigurationAssociatedWithConfigurationSet"
    }

    public object ProtectConfigurationIsAccountDefault : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT"
        override fun toString(): kotlin.String = "ProtectConfigurationIsAccountDefault"
    }

    public object ProtectConfigurationNotAssociatedWithConfigurationSet : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET"
        override fun toString(): kotlin.String = "ProtectConfigurationNotAssociatedWithConfigurationSet"
    }

    public object RegistrationAlreadySubmitted : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "REGISTRATION_ALREADY_SUBMITTED"
        override fun toString(): kotlin.String = "RegistrationAlreadySubmitted"
    }

    public object RegistrationNotComplete : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "REGISTRATION_NOT_COMPLETE"
        override fun toString(): kotlin.String = "RegistrationNotComplete"
    }

    public object ResourceAlreadyExists : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "RESOURCE_ALREADY_EXISTS"
        override fun toString(): kotlin.String = "ResourceAlreadyExists"
    }

    public object ResourceDeletionNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "RESOURCE_DELETION_NOT_ALLOWED"
        override fun toString(): kotlin.String = "ResourceDeletionNotAllowed"
    }

    public object ResourceModificationNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "RESOURCE_MODIFICATION_NOT_ALLOWED"
        override fun toString(): kotlin.String = "ResourceModificationNotAllowed"
    }

    public object ResourceNotActive : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "RESOURCE_NOT_ACTIVE"
        override fun toString(): kotlin.String = "ResourceNotActive"
    }

    public object ResourceNotEmpty : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "RESOURCE_NOT_EMPTY"
        override fun toString(): kotlin.String = "ResourceNotEmpty"
    }

    public object SelfManagedOptOutsMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "SELF_MANAGED_OPT_OUTS_MISMATCH"
        override fun toString(): kotlin.String = "SelfManagedOptOutsMismatch"
    }

    public object SenderIdAssociatedToPool : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "SENDER_ID_ASSOCIATED_TO_POOL"
        override fun toString(): kotlin.String = "SenderIdAssociatedToPool"
    }

    public object SubmitRegistrationVersionNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED"
        override fun toString(): kotlin.String = "SubmitRegistrationVersionNotAllowed"
    }

    public object TwoWayConfigMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "TWO_WAY_CONFIG_MISMATCH"
        override fun toString(): kotlin.String = "TwoWayConfigMismatch"
    }

    public object VerificationAlreadyComplete : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "VERIFICATION_ALREADY_COMPLETE"
        override fun toString(): kotlin.String = "VerificationAlreadyComplete"
    }

    public object VerificationCodeExpired : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        override val value: kotlin.String = "VERIFICATION_CODE_EXPIRED"
        override fun toString(): kotlin.String = "VerificationCodeExpired"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
        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.pinpointsmsvoicev2.model.ConflictExceptionReason = when (value) {
            "CREATE_REGISTRATION_VERSION_NOT_ALLOWED" -> CreateRegistrationVersionNotAllowed
            "DELETION_PROTECTION_ENABLED" -> DeletionProtectionEnabled
            "DESTINATION_COUNTRY_BLOCKED_BY_PROTECT_CONFIGURATION" -> DestinationCountryBlockedByProtectConfiguration
            "DESTINATION_PHONE_NUMBER_NOT_VERIFIED" -> DestinationPhoneNumberNotVerified
            "DESTINATION_PHONE_NUMBER_OPTED_OUT" -> DestinationPhoneNumberOptedOut
            "DISASSOCIATE_REGISTRATION_NOT_ALLOWED" -> DisassociateRegistrationNotAllowed
            "DISCARD_REGISTRATION_VERSION_NOT_ALLOWED" -> DiscardRegistrationVersionNotAllowed
            "EDIT_REGISTRATION_FIELD_VALUES_NOT_ALLOWED" -> EditRegistrationFieldValuesNotAllowed
            "EVENT_DESTINATION_MISMATCH" -> EventDestinationMismatch
            "KEYWORD_MISMATCH" -> KeywordMismatch
            "LAST_PHONE_NUMBER" -> LastPhoneNumber
            "MESSAGE_TYPE_MISMATCH" -> MessageTypeMismatch
            "NO_ORIGINATION_IDENTITIES_FOUND" -> NoOriginationIdentitiesFound
            "NUMBER_CAPABILITIES_MISMATCH" -> NumberCapabilitiesMismatch
            "OPT_OUT_LIST_MISMATCH" -> OptOutListMismatch
            "PHONE_NUMBER_ASSOCIATED_TO_POOL" -> PhoneNumberAssociatedToPool
            "PHONE_NUMBER_ASSOCIATED_TO_REGISTRATION" -> PhoneNumberAssociatedToRegistration
            "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL" -> PhoneNumberNotAssociatedToPool
            "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION" -> PhoneNumberNotInRegistrationRegion
            "PROTECT_CONFIGURATION_ASSOCIATED_WITH_CONFIGURATION_SET" -> ProtectConfigurationAssociatedWithConfigurationSet
            "PROTECT_CONFIGURATION_IS_ACCOUNT_DEFAULT" -> ProtectConfigurationIsAccountDefault
            "PROTECT_CONFIGURATION_NOT_ASSOCIATED_WITH_CONFIGURATION_SET" -> ProtectConfigurationNotAssociatedWithConfigurationSet
            "REGISTRATION_ALREADY_SUBMITTED" -> RegistrationAlreadySubmitted
            "REGISTRATION_NOT_COMPLETE" -> RegistrationNotComplete
            "RESOURCE_ALREADY_EXISTS" -> ResourceAlreadyExists
            "RESOURCE_DELETION_NOT_ALLOWED" -> ResourceDeletionNotAllowed
            "RESOURCE_MODIFICATION_NOT_ALLOWED" -> ResourceModificationNotAllowed
            "RESOURCE_NOT_ACTIVE" -> ResourceNotActive
            "RESOURCE_NOT_EMPTY" -> ResourceNotEmpty
            "SELF_MANAGED_OPT_OUTS_MISMATCH" -> SelfManagedOptOutsMismatch
            "SENDER_ID_ASSOCIATED_TO_POOL" -> SenderIdAssociatedToPool
            "SUBMIT_REGISTRATION_VERSION_NOT_ALLOWED" -> SubmitRegistrationVersionNotAllowed
            "TWO_WAY_CONFIG_MISMATCH" -> TwoWayConfigMismatch
            "VERIFICATION_ALREADY_COMPLETE" -> VerificationAlreadyComplete
            "VERIFICATION_CODE_EXPIRED" -> VerificationCodeExpired
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            CreateRegistrationVersionNotAllowed,
            DeletionProtectionEnabled,
            DestinationCountryBlockedByProtectConfiguration,
            DestinationPhoneNumberNotVerified,
            DestinationPhoneNumberOptedOut,
            DisassociateRegistrationNotAllowed,
            DiscardRegistrationVersionNotAllowed,
            EditRegistrationFieldValuesNotAllowed,
            EventDestinationMismatch,
            KeywordMismatch,
            LastPhoneNumber,
            MessageTypeMismatch,
            NoOriginationIdentitiesFound,
            NumberCapabilitiesMismatch,
            OptOutListMismatch,
            PhoneNumberAssociatedToPool,
            PhoneNumberAssociatedToRegistration,
            PhoneNumberNotAssociatedToPool,
            PhoneNumberNotInRegistrationRegion,
            ProtectConfigurationAssociatedWithConfigurationSet,
            ProtectConfigurationIsAccountDefault,
            ProtectConfigurationNotAssociatedWithConfigurationSet,
            RegistrationAlreadySubmitted,
            RegistrationNotComplete,
            ResourceAlreadyExists,
            ResourceDeletionNotAllowed,
            ResourceModificationNotAllowed,
            ResourceNotActive,
            ResourceNotEmpty,
            SelfManagedOptOutsMismatch,
            SenderIdAssociatedToPool,
            SubmitRegistrationVersionNotAllowed,
            TwoWayConfigMismatch,
            VerificationAlreadyComplete,
            VerificationCodeExpired,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy