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.99
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 CannotAddOptedOutNumber : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override val value: kotlin.String = "CANNOT_ADD_OPTED_OUT_NUMBER"
        override fun toString(): kotlin.String = value
    }

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

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

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

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

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

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

    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 = value
    }

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

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

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

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

    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 = value
    }

    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 = value
    }

    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 = value
    }

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

    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 = value
    }

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

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

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

    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 = value
    }

    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 = value
    }

    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 = value
    }

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason() {
        override fun toString(): kotlin.String = value
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ValidationExceptionReason = when(str) {
            "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
            "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
            "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT" -> RequestedSpendLimitHigherThanServiceLimit
            "SENDER_ID_NOT_REGISTERED" -> SenderIdNotRegistered
            "SENDER_ID_NOT_SUPPORTED" -> SenderIdNotSupported
            "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
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            CannotAddOptedOutNumber,
            CannotParse,
            CountryCodeMismatch,
            DestinationCountryBlocked,
            FieldValidationFailed,
            InvalidArn,
            InvalidFilterValues,
            InvalidIdentityForDestinationCountry,
            InvalidNextToken,
            InvalidParameter,
            MissingParameter,
            Other,
            ParametersCannotBeUsedTogether,
            PhoneNumberCannotBeOptedIn,
            PhoneNumberCannotBeReleased,
            PriceOverThreshold,
            RequestedSpendLimitHigherThanServiceLimit,
            SenderIdNotRegistered,
            SenderIdNotSupported,
            TwoWayNotEnabled,
            TwoWayNotSupportedInCountry,
            TwoWayNotSupportedInRegion,
            TwoWayTopicNotPresent,
            UnknownOperation
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy