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

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

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

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

import kotlin.collections.List

public sealed class ServiceQuotaExceededExceptionReason {

    public abstract val value: kotlin.String

    public object ConfigurationSetsPerAccount : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "CONFIGURATION_SETS_PER_ACCOUNT"
        override fun toString(): kotlin.String = value
    }

    public object DailyDestinationCallLimit : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "DAILY_DESTINATION_CALL_LIMIT"
        override fun toString(): kotlin.String = value
    }

    public object EventDestinationsPerConfigurationSet : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "EVENT_DESTINATIONS_PER_CONFIGURATION_SET"
        override fun toString(): kotlin.String = value
    }

    public object KeywordsPerPhoneNumber : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "KEYWORDS_PER_PHONE_NUMBER"
        override fun toString(): kotlin.String = value
    }

    public object KeywordsPerPool : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "KEYWORDS_PER_POOL"
        override fun toString(): kotlin.String = value
    }

    public object MonthlySpendLimitReachedForText : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT"
        override fun toString(): kotlin.String = value
    }

    public object MonthlySpendLimitReachedForVoice : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE"
        override fun toString(): kotlin.String = value
    }

    public object OptOutListsPerAccount : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "OPT_OUT_LISTS_PER_ACCOUNT"
        override fun toString(): kotlin.String = value
    }

    public object OriginationIdentitiesPerPool : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "ORIGINATION_IDENTITIES_PER_POOL"
        override fun toString(): kotlin.String = value
    }

    public object PhoneNumbersPerAccount : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBERS_PER_ACCOUNT"
        override fun toString(): kotlin.String = value
    }

    public object PhoneNumbersPerRegistration : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "PHONE_NUMBERS_PER_REGISTRATION"
        override fun toString(): kotlin.String = value
    }

    public object PoolsPerAccount : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "POOLS_PER_ACCOUNT"
        override fun toString(): kotlin.String = value
    }

    public object TagsPerResource : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        override val value: kotlin.String = "TAGS_PER_RESOURCE"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ServiceQuotaExceededExceptionReason() {
        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.ServiceQuotaExceededExceptionReason = when(str) {
            "CONFIGURATION_SETS_PER_ACCOUNT" -> ConfigurationSetsPerAccount
            "DAILY_DESTINATION_CALL_LIMIT" -> DailyDestinationCallLimit
            "EVENT_DESTINATIONS_PER_CONFIGURATION_SET" -> EventDestinationsPerConfigurationSet
            "KEYWORDS_PER_PHONE_NUMBER" -> KeywordsPerPhoneNumber
            "KEYWORDS_PER_POOL" -> KeywordsPerPool
            "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT" -> MonthlySpendLimitReachedForText
            "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE" -> MonthlySpendLimitReachedForVoice
            "OPT_OUT_LISTS_PER_ACCOUNT" -> OptOutListsPerAccount
            "ORIGINATION_IDENTITIES_PER_POOL" -> OriginationIdentitiesPerPool
            "PHONE_NUMBERS_PER_ACCOUNT" -> PhoneNumbersPerAccount
            "PHONE_NUMBERS_PER_REGISTRATION" -> PhoneNumbersPerRegistration
            "POOLS_PER_ACCOUNT" -> PoolsPerAccount
            "TAGS_PER_RESOURCE" -> TagsPerResource
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            ConfigurationSetsPerAccount,
            DailyDestinationCallLimit,
            EventDestinationsPerConfigurationSet,
            KeywordsPerPhoneNumber,
            KeywordsPerPool,
            MonthlySpendLimitReachedForText,
            MonthlySpendLimitReachedForVoice,
            OptOutListsPerAccount,
            OriginationIdentitiesPerPool,
            PhoneNumbersPerAccount,
            PhoneNumbersPerRegistration,
            PoolsPerAccount,
            TagsPerResource
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy