commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoicev2-jvm Show documentation
Show all versions of pinpointsmsvoicev2-jvm Show documentation
The AWS Kotlin client for Pinpoint SMS Voice V2
// 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 DeletionProtectionEnabled : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "DELETION_PROTECTION_ENABLED"
override fun toString(): kotlin.String = value
}
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 = value
}
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 = value
}
public object EventDestinationMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "EVENT_DESTINATION_MISMATCH"
override fun toString(): kotlin.String = value
}
public object KeywordMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "KEYWORD_MISMATCH"
override fun toString(): kotlin.String = value
}
public object LastPhoneNumber : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "LAST_PHONE_NUMBER"
override fun toString(): kotlin.String = value
}
public object MessageTypeMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "MESSAGE_TYPE_MISMATCH"
override fun toString(): kotlin.String = value
}
public object NoOriginationIdentitiesFound : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "NO_ORIGINATION_IDENTITIES_FOUND"
override fun toString(): kotlin.String = value
}
public object OptOutListMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "OPT_OUT_LIST_MISMATCH"
override fun toString(): kotlin.String = value
}
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 = value
}
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 = value
}
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 = value
}
public object ResourceAlreadyExists : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "RESOURCE_ALREADY_EXISTS"
override fun toString(): kotlin.String = value
}
public object ResourceDeletionNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "RESOURCE_DELETION_NOT_ALLOWED"
override fun toString(): kotlin.String = value
}
public object ResourceModificationNotAllowed : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "RESOURCE_MODIFICATION_NOT_ALLOWED"
override fun toString(): kotlin.String = value
}
public object ResourceNotActive : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "RESOURCE_NOT_ACTIVE"
override fun toString(): kotlin.String = value
}
public object ResourceNotEmpty : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "RESOURCE_NOT_EMPTY"
override fun toString(): kotlin.String = value
}
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 = value
}
public object TwoWayConfigMismatch : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
override val value: kotlin.String = "TWO_WAY_CONFIG_MISMATCH"
override fun toString(): kotlin.String = value
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.ConflictExceptionReason() {
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.ConflictExceptionReason = when(str) {
"DELETION_PROTECTION_ENABLED" -> DeletionProtectionEnabled
"DESTINATION_PHONE_NUMBER_NOT_VERIFIED" -> DestinationPhoneNumberNotVerified
"DESTINATION_PHONE_NUMBER_OPTED_OUT" -> DestinationPhoneNumberOptedOut
"EVENT_DESTINATION_MISMATCH" -> EventDestinationMismatch
"KEYWORD_MISMATCH" -> KeywordMismatch
"LAST_PHONE_NUMBER" -> LastPhoneNumber
"MESSAGE_TYPE_MISMATCH" -> MessageTypeMismatch
"NO_ORIGINATION_IDENTITIES_FOUND" -> NoOriginationIdentitiesFound
"OPT_OUT_LIST_MISMATCH" -> OptOutListMismatch
"PHONE_NUMBER_ASSOCIATED_TO_POOL" -> PhoneNumberAssociatedToPool
"PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL" -> PhoneNumberNotAssociatedToPool
"PHONE_NUMBER_NOT_IN_REGISTRATION_REGION" -> PhoneNumberNotInRegistrationRegion
"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
"TWO_WAY_CONFIG_MISMATCH" -> TwoWayConfigMismatch
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = listOf(
DeletionProtectionEnabled,
DestinationPhoneNumberNotVerified,
DestinationPhoneNumberOptedOut,
EventDestinationMismatch,
KeywordMismatch,
LastPhoneNumber,
MessageTypeMismatch,
NoOriginationIdentitiesFound,
OptOutListMismatch,
PhoneNumberAssociatedToPool,
PhoneNumberNotAssociatedToPool,
PhoneNumberNotInRegistrationRegion,
ResourceAlreadyExists,
ResourceDeletionNotAllowed,
ResourceModificationNotAllowed,
ResourceNotActive,
ResourceNotEmpty,
SelfManagedOptOutsMismatch,
TwoWayConfigMismatch
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy