commonMain.aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummaryFailureCode.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcontactlens.model
import kotlin.collections.List
public sealed class PostContactSummaryFailureCode {
public abstract val value: kotlin.String
public object FailedSafetyGuidelines : aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummaryFailureCode() {
override val value: kotlin.String = "FAILED_SAFETY_GUIDELINES"
override fun toString(): kotlin.String = "FailedSafetyGuidelines"
}
public object InsufficientConversationContent : aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummaryFailureCode() {
override val value: kotlin.String = "INSUFFICIENT_CONVERSATION_CONTENT"
override fun toString(): kotlin.String = "InsufficientConversationContent"
}
public object InternalError : aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummaryFailureCode() {
override val value: kotlin.String = "INTERNAL_ERROR"
override fun toString(): kotlin.String = "InternalError"
}
public object InvalidAnalysisConfiguration : aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummaryFailureCode() {
override val value: kotlin.String = "INVALID_ANALYSIS_CONFIGURATION"
override fun toString(): kotlin.String = "InvalidAnalysisConfiguration"
}
public object QuotaExceeded : aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummaryFailureCode() {
override val value: kotlin.String = "QUOTA_EXCEEDED"
override fun toString(): kotlin.String = "QuotaExceeded"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.connectcontactlens.model.PostContactSummaryFailureCode() {
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.connectcontactlens.model.PostContactSummaryFailureCode = when (value) {
"FAILED_SAFETY_GUIDELINES" -> FailedSafetyGuidelines
"INSUFFICIENT_CONVERSATION_CONTENT" -> InsufficientConversationContent
"INTERNAL_ERROR" -> InternalError
"INVALID_ANALYSIS_CONFIGURATION" -> InvalidAnalysisConfiguration
"QUOTA_EXCEEDED" -> QuotaExceeded
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
FailedSafetyGuidelines,
InsufficientConversationContent,
InternalError,
InvalidAnalysisConfiguration,
QuotaExceeded,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy