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

commonMain.aws.sdk.kotlin.services.comprehend.model.BatchDetectSyntaxRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.comprehend.model



public class BatchDetectSyntaxRequest private constructor(builder: Builder) {
    /**
     * The language of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
     */
    public val languageCode: aws.sdk.kotlin.services.comprehend.model.SyntaxLanguageCode? = builder.languageCode
    /**
     * A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size for each document is 5 KB.
     */
    public val textList: List? = builder.textList

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.BatchDetectSyntaxRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("BatchDetectSyntaxRequest(")
        append("languageCode=$languageCode,")
        append("textList=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = languageCode?.hashCode() ?: 0
        result = 31 * result + (textList?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as BatchDetectSyntaxRequest

        if (languageCode != other.languageCode) return false
        if (textList != other.textList) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.BatchDetectSyntaxRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The language of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
         */
        public var languageCode: aws.sdk.kotlin.services.comprehend.model.SyntaxLanguageCode? = null
        /**
         * A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size for each document is 5 KB.
         */
        public var textList: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.comprehend.model.BatchDetectSyntaxRequest) : this() {
            this.languageCode = x.languageCode
            this.textList = x.textList
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.comprehend.model.BatchDetectSyntaxRequest = BatchDetectSyntaxRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy