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

commonMain.aws.sdk.kotlin.services.bedrockagent.model.IngestionJobStatistics.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.bedrockagent.model



/**
 * The document level statistics of an ingestion job
 */
public class IngestionJobStatistics private constructor(builder: Builder) {
    /**
     * Number of deleted documents
     */
    public val numberOfDocumentsDeleted: kotlin.Long = builder.numberOfDocumentsDeleted
    /**
     * Number of failed documents
     */
    public val numberOfDocumentsFailed: kotlin.Long = builder.numberOfDocumentsFailed
    /**
     * Number of scanned documents
     */
    public val numberOfDocumentsScanned: kotlin.Long = builder.numberOfDocumentsScanned
    /**
     * Number of modified documents indexed
     */
    public val numberOfModifiedDocumentsIndexed: kotlin.Long = builder.numberOfModifiedDocumentsIndexed
    /**
     * Number of indexed documents
     */
    public val numberOfNewDocumentsIndexed: kotlin.Long = builder.numberOfNewDocumentsIndexed

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

    override fun toString(): kotlin.String = buildString {
        append("IngestionJobStatistics(")
        append("numberOfDocumentsDeleted=$numberOfDocumentsDeleted,")
        append("numberOfDocumentsFailed=$numberOfDocumentsFailed,")
        append("numberOfDocumentsScanned=$numberOfDocumentsScanned,")
        append("numberOfModifiedDocumentsIndexed=$numberOfModifiedDocumentsIndexed,")
        append("numberOfNewDocumentsIndexed=$numberOfNewDocumentsIndexed")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = numberOfDocumentsDeleted.hashCode()
        result = 31 * result + (numberOfDocumentsFailed.hashCode())
        result = 31 * result + (numberOfDocumentsScanned.hashCode())
        result = 31 * result + (numberOfModifiedDocumentsIndexed.hashCode())
        result = 31 * result + (numberOfNewDocumentsIndexed.hashCode())
        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 IngestionJobStatistics

        if (numberOfDocumentsDeleted != other.numberOfDocumentsDeleted) return false
        if (numberOfDocumentsFailed != other.numberOfDocumentsFailed) return false
        if (numberOfDocumentsScanned != other.numberOfDocumentsScanned) return false
        if (numberOfModifiedDocumentsIndexed != other.numberOfModifiedDocumentsIndexed) return false
        if (numberOfNewDocumentsIndexed != other.numberOfNewDocumentsIndexed) return false

        return true
    }

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

    public class Builder {
        /**
         * Number of deleted documents
         */
        public var numberOfDocumentsDeleted: kotlin.Long = 0L
        /**
         * Number of failed documents
         */
        public var numberOfDocumentsFailed: kotlin.Long = 0L
        /**
         * Number of scanned documents
         */
        public var numberOfDocumentsScanned: kotlin.Long = 0L
        /**
         * Number of modified documents indexed
         */
        public var numberOfModifiedDocumentsIndexed: kotlin.Long = 0L
        /**
         * Number of indexed documents
         */
        public var numberOfNewDocumentsIndexed: kotlin.Long = 0L

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.IngestionJobStatistics) : this() {
            this.numberOfDocumentsDeleted = x.numberOfDocumentsDeleted
            this.numberOfDocumentsFailed = x.numberOfDocumentsFailed
            this.numberOfDocumentsScanned = x.numberOfDocumentsScanned
            this.numberOfModifiedDocumentsIndexed = x.numberOfModifiedDocumentsIndexed
            this.numberOfNewDocumentsIndexed = x.numberOfNewDocumentsIndexed
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.IngestionJobStatistics = IngestionJobStatistics(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy