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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason.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 ValidationExceptionReason {
    public abstract val value: kotlin.String

    public object AttachmentTypeNotSupported : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "ATTACHMENT_TYPE_NOT_SUPPORTED"
        override fun toString(): kotlin.String = "AttachmentTypeNotSupported"
    }

    public object CannotAddOptedOutNumber : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "CANNOT_ADD_OPTED_OUT_NUMBER"
        override fun toString(): kotlin.String = "CannotAddOptedOutNumber"
    }

    public object CannotParse : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "CANNOT_PARSE"
        override fun toString(): kotlin.String = "CannotParse"
    }

    public object CountryCodeMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "COUNTRY_CODE_MISMATCH"
        override fun toString(): kotlin.String = "CountryCodeMismatch"
    }

    public object DestinationCountryBlocked : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "DESTINATION_COUNTRY_BLOCKED"
        override fun toString(): kotlin.String = "DestinationCountryBlocked"
    }

    public object FieldValidationFailed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "FIELD_VALIDATION_FAILED"
        override fun toString(): kotlin.String = "FieldValidationFailed"
    }

    public object InvalidArn : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "INVALID_ARN"
        override fun toString(): kotlin.String = "InvalidArn"
    }

    public object InvalidFilterValues : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "INVALID_FILTER_VALUES"
        override fun toString(): kotlin.String = "InvalidFilterValues"
    }

    public object InvalidIdentityForDestinationCountry : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY"
        override fun toString(): kotlin.String = "InvalidIdentityForDestinationCountry"
    }

    public object InvalidNextToken : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "INVALID_NEXT_TOKEN"
        override fun toString(): kotlin.String = "InvalidNextToken"
    }

    public object InvalidParameter : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "INVALID_PARAMETER"
        override fun toString(): kotlin.String = "InvalidParameter"
    }

    public object InvalidRegistrationAssociation : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "INVALID_REGISTRATION_ASSOCIATION"
        override fun toString(): kotlin.String = "InvalidRegistrationAssociation"
    }

    public object InvalidRequest : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "INVALID_REQUEST"
        override fun toString(): kotlin.String = "InvalidRequest"
    }

    public object MaximumSizeExceeded : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "MAXIMUM_SIZE_EXCEEDED"
        override fun toString(): kotlin.String = "MaximumSizeExceeded"
    }

    public object MediaTypeNotSupported : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "MEDIA_TYPE_NOT_SUPPORTED"
        override fun toString(): kotlin.String = "MediaTypeNotSupported"
    }

    public object MissingParameter : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "MISSING_PARAMETER"
        override fun toString(): kotlin.String = "MissingParameter"
    }

    public object Other : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "OTHER"
        override fun toString(): kotlin.String = "Other"
    }

    public object ParametersCannotBeUsedTogether : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "PARAMETERS_CANNOT_BE_USED_TOGETHER"
        override fun toString(): kotlin.String = "ParametersCannotBeUsedTogether"
    }

    public object PhoneNumberCannotBeOptedIn : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBER_CANNOT_BE_OPTED_IN"
        override fun toString(): kotlin.String = "PhoneNumberCannotBeOptedIn"
    }

    public object PhoneNumberCannotBeReleased : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBER_CANNOT_BE_RELEASED"
        override fun toString(): kotlin.String = "PhoneNumberCannotBeReleased"
    }

    public object PriceOverThreshold : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "PRICE_OVER_THRESHOLD"
        override fun toString(): kotlin.String = "PriceOverThreshold"
    }

    public object RegistrationFieldCannotBeDeleted : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "REGISTRATION_FIELD_CANNOT_BE_DELETED"
        override fun toString(): kotlin.String = "RegistrationFieldCannotBeDeleted"
    }

    public object RequestedSpendLimitHigherThanServiceLimit : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT"
        override fun toString(): kotlin.String = "RequestedSpendLimitHigherThanServiceLimit"
    }

    public object ResourceNotAccessible : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "RESOURCE_NOT_ACCESSIBLE"
        override fun toString(): kotlin.String = "ResourceNotAccessible"
    }

    public object SenderIdNotRegistered : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "SENDER_ID_NOT_REGISTERED"
        override fun toString(): kotlin.String = "SenderIdNotRegistered"
    }

    public object SenderIdNotSupported : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "SENDER_ID_NOT_SUPPORTED"
        override fun toString(): kotlin.String = "SenderIdNotSupported"
    }

    public object SenderIdRequiresRegistration : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "SENDER_ID_REQUIRES_REGISTRATION"
        override fun toString(): kotlin.String = "SenderIdRequiresRegistration"
    }

    public object TwoWayChannelNotPresent : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "TWO_WAY_CHANNEL_NOT_PRESENT"
        override fun toString(): kotlin.String = "TwoWayChannelNotPresent"
    }

    public object TwoWayNotEnabled : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "TWO_WAY_NOT_ENABLED"
        override fun toString(): kotlin.String = "TwoWayNotEnabled"
    }

    public object TwoWayNotSupportedInCountry : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY"
        override fun toString(): kotlin.String = "TwoWayNotSupportedInCountry"
    }

    public object TwoWayNotSupportedInRegion : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "TWO_WAY_NOT_SUPPORTED_IN_REGION"
        override fun toString(): kotlin.String = "TwoWayNotSupportedInRegion"
    }

    public object TwoWayTopicNotPresent : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "TWO_WAY_TOPIC_NOT_PRESENT"
        override fun toString(): kotlin.String = "TwoWayTopicNotPresent"
    }

    public object UnknownOperation : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "UNKNOWN_OPERATION"
        override fun toString(): kotlin.String = "UnknownOperation"
    }

    public object UnknownRegistrationField : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "UNKNOWN_REGISTRATION_FIELD"
        override fun toString(): kotlin.String = "UnknownRegistrationField"
    }

    public object UnknownRegistrationSection : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "UNKNOWN_REGISTRATION_SECTION"
        override fun toString(): kotlin.String = "UnknownRegistrationSection"
    }

    public object UnknownRegistrationType : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "UNKNOWN_REGISTRATION_TYPE"
        override fun toString(): kotlin.String = "UnknownRegistrationType"
    }

    public object UnknownRegistrationVersion : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "UNKNOWN_REGISTRATION_VERSION"
        override fun toString(): kotlin.String = "UnknownRegistrationVersion"
    }

    public object UnspecifiedParameterNotSupported : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "UNSPECIFIED_PARAMETER_NOT_SUPPORTED"
        override fun toString(): kotlin.String = "UnspecifiedParameterNotSupported"
    }

    public object VerificationCodeMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "VERIFICATION_CODE_MISMATCH"
        override fun toString(): kotlin.String = "VerificationCodeMismatch"
    }

    public object VoiceCapabilityNotAvailable : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "VOICE_CAPABILITY_NOT_AVAILABLE"
        override fun toString(): kotlin.String = "VoiceCapabilityNotAvailable"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        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.ValidationExceptionReason = when (value) {
            "ATTACHMENT_TYPE_NOT_SUPPORTED" -> AttachmentTypeNotSupported
            "CANNOT_ADD_OPTED_OUT_NUMBER" -> CannotAddOptedOutNumber
            "CANNOT_PARSE" -> CannotParse
            "COUNTRY_CODE_MISMATCH" -> CountryCodeMismatch
            "DESTINATION_COUNTRY_BLOCKED" -> DestinationCountryBlocked
            "FIELD_VALIDATION_FAILED" -> FieldValidationFailed
            "INVALID_ARN" -> InvalidArn
            "INVALID_FILTER_VALUES" -> InvalidFilterValues
            "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY" -> InvalidIdentityForDestinationCountry
            "INVALID_NEXT_TOKEN" -> InvalidNextToken
            "INVALID_PARAMETER" -> InvalidParameter
            "INVALID_REGISTRATION_ASSOCIATION" -> InvalidRegistrationAssociation
            "INVALID_REQUEST" -> InvalidRequest
            "MAXIMUM_SIZE_EXCEEDED" -> MaximumSizeExceeded
            "MEDIA_TYPE_NOT_SUPPORTED" -> MediaTypeNotSupported
            "MISSING_PARAMETER" -> MissingParameter
            "OTHER" -> Other
            "PARAMETERS_CANNOT_BE_USED_TOGETHER" -> ParametersCannotBeUsedTogether
            "PHONE_NUMBER_CANNOT_BE_OPTED_IN" -> PhoneNumberCannotBeOptedIn
            "PHONE_NUMBER_CANNOT_BE_RELEASED" -> PhoneNumberCannotBeReleased
            "PRICE_OVER_THRESHOLD" -> PriceOverThreshold
            "REGISTRATION_FIELD_CANNOT_BE_DELETED" -> RegistrationFieldCannotBeDeleted
            "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT" -> RequestedSpendLimitHigherThanServiceLimit
            "RESOURCE_NOT_ACCESSIBLE" -> ResourceNotAccessible
            "SENDER_ID_NOT_REGISTERED" -> SenderIdNotRegistered
            "SENDER_ID_NOT_SUPPORTED" -> SenderIdNotSupported
            "SENDER_ID_REQUIRES_REGISTRATION" -> SenderIdRequiresRegistration
            "TWO_WAY_CHANNEL_NOT_PRESENT" -> TwoWayChannelNotPresent
            "TWO_WAY_NOT_ENABLED" -> TwoWayNotEnabled
            "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY" -> TwoWayNotSupportedInCountry
            "TWO_WAY_NOT_SUPPORTED_IN_REGION" -> TwoWayNotSupportedInRegion
            "TWO_WAY_TOPIC_NOT_PRESENT" -> TwoWayTopicNotPresent
            "UNKNOWN_OPERATION" -> UnknownOperation
            "UNKNOWN_REGISTRATION_FIELD" -> UnknownRegistrationField
            "UNKNOWN_REGISTRATION_SECTION" -> UnknownRegistrationSection
            "UNKNOWN_REGISTRATION_TYPE" -> UnknownRegistrationType
            "UNKNOWN_REGISTRATION_VERSION" -> UnknownRegistrationVersion
            "UNSPECIFIED_PARAMETER_NOT_SUPPORTED" -> UnspecifiedParameterNotSupported
            "VERIFICATION_CODE_MISMATCH" -> VerificationCodeMismatch
            "VOICE_CAPABILITY_NOT_AVAILABLE" -> VoiceCapabilityNotAvailable
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            AttachmentTypeNotSupported,
            CannotAddOptedOutNumber,
            CannotParse,
            CountryCodeMismatch,
            DestinationCountryBlocked,
            FieldValidationFailed,
            InvalidArn,
            InvalidFilterValues,
            InvalidIdentityForDestinationCountry,
            InvalidNextToken,
            InvalidParameter,
            InvalidRegistrationAssociation,
            InvalidRequest,
            MaximumSizeExceeded,
            MediaTypeNotSupported,
            MissingParameter,
            Other,
            ParametersCannotBeUsedTogether,
            PhoneNumberCannotBeOptedIn,
            PhoneNumberCannotBeReleased,
            PriceOverThreshold,
            RegistrationFieldCannotBeDeleted,
            RequestedSpendLimitHigherThanServiceLimit,
            ResourceNotAccessible,
            SenderIdNotRegistered,
            SenderIdNotSupported,
            SenderIdRequiresRegistration,
            TwoWayChannelNotPresent,
            TwoWayNotEnabled,
            TwoWayNotSupportedInCountry,
            TwoWayNotSupportedInRegion,
            TwoWayTopicNotPresent,
            UnknownOperation,
            UnknownRegistrationField,
            UnknownRegistrationSection,
            UnknownRegistrationType,
            UnknownRegistrationVersion,
            UnspecifiedParameterNotSupported,
            VerificationCodeMismatch,
            VoiceCapabilityNotAvailable,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy