
commonMain.aws.sdk.kotlin.services.qbusiness.model.DataSourceSyncJobMetrics.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
/**
* Maps a batch delete document request to a specific Amazon Q Business data source connector sync job.
*/
public class DataSourceSyncJobMetrics private constructor(builder: Builder) {
/**
* The current count of documents added from the data source during the data source sync.
*/
public val documentsAdded: kotlin.String? = builder.documentsAdded
/**
* The current count of documents deleted from the data source during the data source sync.
*/
public val documentsDeleted: kotlin.String? = builder.documentsDeleted
/**
* The current count of documents that failed to sync from the data source during the data source sync.
*/
public val documentsFailed: kotlin.String? = builder.documentsFailed
/**
* The current count of documents modified in the data source during the data source sync.
*/
public val documentsModified: kotlin.String? = builder.documentsModified
/**
* The current count of documents crawled by the ongoing sync job in the data source.
*/
public val documentsScanned: kotlin.String? = builder.documentsScanned
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.DataSourceSyncJobMetrics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataSourceSyncJobMetrics(")
append("documentsAdded=$documentsAdded,")
append("documentsDeleted=$documentsDeleted,")
append("documentsFailed=$documentsFailed,")
append("documentsModified=$documentsModified,")
append("documentsScanned=$documentsScanned")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = documentsAdded?.hashCode() ?: 0
result = 31 * result + (documentsDeleted?.hashCode() ?: 0)
result = 31 * result + (documentsFailed?.hashCode() ?: 0)
result = 31 * result + (documentsModified?.hashCode() ?: 0)
result = 31 * result + (documentsScanned?.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 DataSourceSyncJobMetrics
if (documentsAdded != other.documentsAdded) return false
if (documentsDeleted != other.documentsDeleted) return false
if (documentsFailed != other.documentsFailed) return false
if (documentsModified != other.documentsModified) return false
if (documentsScanned != other.documentsScanned) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.DataSourceSyncJobMetrics = Builder(this).apply(block).build()
public class Builder {
/**
* The current count of documents added from the data source during the data source sync.
*/
public var documentsAdded: kotlin.String? = null
/**
* The current count of documents deleted from the data source during the data source sync.
*/
public var documentsDeleted: kotlin.String? = null
/**
* The current count of documents that failed to sync from the data source during the data source sync.
*/
public var documentsFailed: kotlin.String? = null
/**
* The current count of documents modified in the data source during the data source sync.
*/
public var documentsModified: kotlin.String? = null
/**
* The current count of documents crawled by the ongoing sync job in the data source.
*/
public var documentsScanned: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.DataSourceSyncJobMetrics) : this() {
this.documentsAdded = x.documentsAdded
this.documentsDeleted = x.documentsDeleted
this.documentsFailed = x.documentsFailed
this.documentsModified = x.documentsModified
this.documentsScanned = x.documentsScanned
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.DataSourceSyncJobMetrics = DataSourceSyncJobMetrics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy