commonMain.aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageRequest.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 aws.smithy.kotlin.runtime.SdkDsl
public class BatchDetectDominantLanguageRequest private constructor(builder: Builder) {
/**
* A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters. The maximum size of 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.BatchDetectDominantLanguageRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchDetectDominantLanguageRequest(")
append("textList=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 BatchDetectDominantLanguageRequest
if (textList != other.textList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters. The maximum size of each document is 5 KB.
*/
public var textList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageRequest) : this() {
this.textList = x.textList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageRequest = BatchDetectDominantLanguageRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}