commonMain.aws.sdk.kotlin.services.bedrockagent.model.IngestionJobStatistics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the statistics for the ingestion job.
*/
public class IngestionJobStatistics private constructor(builder: Builder) {
/**
* The number of source documents that was deleted.
*/
public val numberOfDocumentsDeleted: kotlin.Long = builder.numberOfDocumentsDeleted
/**
* The number of source documents that failed to be ingested.
*/
public val numberOfDocumentsFailed: kotlin.Long = builder.numberOfDocumentsFailed
/**
* The total number of source documents that were scanned. Includes new, updated, and unchanged documents.
*/
public val numberOfDocumentsScanned: kotlin.Long = builder.numberOfDocumentsScanned
/**
* The number of metadata files that were updated or deleted.
*/
public val numberOfMetadataDocumentsModified: kotlin.Long = builder.numberOfMetadataDocumentsModified
/**
* The total number of metadata files that were scanned. Includes new, updated, and unchanged files.
*/
public val numberOfMetadataDocumentsScanned: kotlin.Long = builder.numberOfMetadataDocumentsScanned
/**
* The number of modified source documents in the data source that were successfully indexed.
*/
public val numberOfModifiedDocumentsIndexed: kotlin.Long = builder.numberOfModifiedDocumentsIndexed
/**
* The number of new source documents in the data source that were successfully indexed.
*/
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("numberOfMetadataDocumentsModified=$numberOfMetadataDocumentsModified,")
append("numberOfMetadataDocumentsScanned=$numberOfMetadataDocumentsScanned,")
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 + (numberOfMetadataDocumentsModified.hashCode())
result = 31 * result + (numberOfMetadataDocumentsScanned.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 (numberOfMetadataDocumentsModified != other.numberOfMetadataDocumentsModified) return false
if (numberOfMetadataDocumentsScanned != other.numberOfMetadataDocumentsScanned) 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()
@SdkDsl
public class Builder {
/**
* The number of source documents that was deleted.
*/
public var numberOfDocumentsDeleted: kotlin.Long = 0L
/**
* The number of source documents that failed to be ingested.
*/
public var numberOfDocumentsFailed: kotlin.Long = 0L
/**
* The total number of source documents that were scanned. Includes new, updated, and unchanged documents.
*/
public var numberOfDocumentsScanned: kotlin.Long = 0L
/**
* The number of metadata files that were updated or deleted.
*/
public var numberOfMetadataDocumentsModified: kotlin.Long = 0L
/**
* The total number of metadata files that were scanned. Includes new, updated, and unchanged files.
*/
public var numberOfMetadataDocumentsScanned: kotlin.Long = 0L
/**
* The number of modified source documents in the data source that were successfully indexed.
*/
public var numberOfModifiedDocumentsIndexed: kotlin.Long = 0L
/**
* The number of new source documents in the data source that were successfully indexed.
*/
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.numberOfMetadataDocumentsModified = x.numberOfMetadataDocumentsModified
this.numberOfMetadataDocumentsScanned = x.numberOfMetadataDocumentsScanned
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
}
}
}