commonMain.aws.sdk.kotlin.services.entityresolution.model.JobMetrics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entityresolution-jvm Show documentation
Show all versions of entityresolution-jvm Show documentation
The AWS SDK for Kotlin client for EntityResolution
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.entityresolution.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object containing `InputRecords`, `TotalRecordsProcessed`, `MatchIDs`, and `RecordsNotProcessed`.
*/
public class JobMetrics private constructor(builder: Builder) {
/**
* The total number of input records.
*/
public val inputRecords: kotlin.Int? = builder.inputRecords
/**
* The total number of `matchID`s generated.
*/
public val matchIds: kotlin.Int? = builder.matchIds
/**
* The total number of records that did not get processed.
*/
public val recordsNotProcessed: kotlin.Int? = builder.recordsNotProcessed
/**
* The total number of records processed.
*/
public val totalRecordsProcessed: kotlin.Int? = builder.totalRecordsProcessed
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.entityresolution.model.JobMetrics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobMetrics(")
append("inputRecords=$inputRecords,")
append("matchIds=$matchIds,")
append("recordsNotProcessed=$recordsNotProcessed,")
append("totalRecordsProcessed=$totalRecordsProcessed")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputRecords ?: 0
result = 31 * result + (matchIds ?: 0)
result = 31 * result + (recordsNotProcessed ?: 0)
result = 31 * result + (totalRecordsProcessed ?: 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 JobMetrics
if (inputRecords != other.inputRecords) return false
if (matchIds != other.matchIds) return false
if (recordsNotProcessed != other.recordsNotProcessed) return false
if (totalRecordsProcessed != other.totalRecordsProcessed) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.JobMetrics = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The total number of input records.
*/
public var inputRecords: kotlin.Int? = null
/**
* The total number of `matchID`s generated.
*/
public var matchIds: kotlin.Int? = null
/**
* The total number of records that did not get processed.
*/
public var recordsNotProcessed: kotlin.Int? = null
/**
* The total number of records processed.
*/
public var totalRecordsProcessed: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.JobMetrics) : this() {
this.inputRecords = x.inputRecords
this.matchIds = x.matchIds
this.recordsNotProcessed = x.recordsNotProcessed
this.totalRecordsProcessed = x.totalRecordsProcessed
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.JobMetrics = JobMetrics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy