
commonMain.aws.sdk.kotlin.services.kendra.model.TextDocumentStatistics.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Provides information about text documents indexed in an index.
*/
public class TextDocumentStatistics private constructor(builder: Builder) {
/**
* The total size, in bytes, of the indexed documents.
*/
public val indexedTextBytes: kotlin.Long = builder.indexedTextBytes
/**
* The number of text documents indexed.
*/
public val indexedTextDocumentsCount: kotlin.Int = builder.indexedTextDocumentsCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.TextDocumentStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TextDocumentStatistics(")
append("indexedTextBytes=$indexedTextBytes,")
append("indexedTextDocumentsCount=$indexedTextDocumentsCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = indexedTextBytes.hashCode()
result = 31 * result + (indexedTextDocumentsCount)
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 TextDocumentStatistics
if (indexedTextBytes != other.indexedTextBytes) return false
if (indexedTextDocumentsCount != other.indexedTextDocumentsCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.TextDocumentStatistics = Builder(this).apply(block).build()
public class Builder {
/**
* The total size, in bytes, of the indexed documents.
*/
public var indexedTextBytes: kotlin.Long = 0L
/**
* The number of text documents indexed.
*/
public var indexedTextDocumentsCount: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.TextDocumentStatistics) : this() {
this.indexedTextBytes = x.indexedTextBytes
this.indexedTextDocumentsCount = x.indexedTextDocumentsCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.TextDocumentStatistics = TextDocumentStatistics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy