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