
commonMain.aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageItemResult.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
/**
* The result of calling the operation. The operation returns one object for each document that is successfully processed by the operation.
*/
public class BatchDetectDominantLanguageItemResult private constructor(builder: Builder) {
/**
* The zero-based index of the document in the input list.
*/
public val index: kotlin.Int? = builder.index
/**
* One or more DominantLanguage objects describing the dominant languages in the document.
*/
public val languages: List? = builder.languages
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageItemResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchDetectDominantLanguageItemResult(")
append("index=$index,")
append("languages=$languages")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = index ?: 0
result = 31 * result + (languages?.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 BatchDetectDominantLanguageItemResult
if (index != other.index) return false
if (languages != other.languages) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageItemResult = Builder(this).apply(block).build()
public class Builder {
/**
* The zero-based index of the document in the input list.
*/
public var index: kotlin.Int? = null
/**
* One or more DominantLanguage objects describing the dominant languages in the document.
*/
public var languages: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageItemResult) : this() {
this.index = x.index
this.languages = x.languages
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.BatchDetectDominantLanguageItemResult = BatchDetectDominantLanguageItemResult(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy