commonMain.aws.sdk.kotlin.services.comprehend.model.DocumentReadAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of comprehend-jvm Show documentation
Show all versions of comprehend-jvm Show documentation
The AWS SDK for Kotlin client for Comprehend
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
import kotlin.collections.List
public sealed class DocumentReadAction {
public abstract val value: kotlin.String
public object TextractAnalyzeDocument : aws.sdk.kotlin.services.comprehend.model.DocumentReadAction() {
override val value: kotlin.String = "TEXTRACT_ANALYZE_DOCUMENT"
override fun toString(): kotlin.String = "TextractAnalyzeDocument"
}
public object TextractDetectDocumentText : aws.sdk.kotlin.services.comprehend.model.DocumentReadAction() {
override val value: kotlin.String = "TEXTRACT_DETECT_DOCUMENT_TEXT"
override fun toString(): kotlin.String = "TextractDetectDocumentText"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.comprehend.model.DocumentReadAction() {
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.comprehend.model.DocumentReadAction = when (value) {
"TEXTRACT_ANALYZE_DOCUMENT" -> TextractAnalyzeDocument
"TEXTRACT_DETECT_DOCUMENT_TEXT" -> TextractDetectDocumentText
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
TextractAnalyzeDocument,
TextractDetectDocumentText,
)
}
}