commonMain.aws.sdk.kotlin.services.entityresolution.model.IdMappingJobMetrics.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`, `RecordsNotProcessed`, `TotalRecordsProcessed`, `TotalMappedRecords`, `TotalMappedSourceRecords`, and `TotalMappedTargetRecords`.
*/
public class IdMappingJobMetrics private constructor(builder: Builder) {
/**
* The total number of records that were input for processing.
*/
public val inputRecords: kotlin.Int? = builder.inputRecords
/**
* The total number of records that did not get processed.
*/
public val recordsNotProcessed: kotlin.Int? = builder.recordsNotProcessed
/**
* The total number of records that were mapped.
*/
public val totalMappedRecords: kotlin.Int? = builder.totalMappedRecords
/**
* The total number of mapped source records.
*/
public val totalMappedSourceRecords: kotlin.Int? = builder.totalMappedSourceRecords
/**
* The total number of distinct mapped target records.
*/
public val totalMappedTargetRecords: kotlin.Int? = builder.totalMappedTargetRecords
/**
* The total number of records that were 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.IdMappingJobMetrics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IdMappingJobMetrics(")
append("inputRecords=$inputRecords,")
append("recordsNotProcessed=$recordsNotProcessed,")
append("totalMappedRecords=$totalMappedRecords,")
append("totalMappedSourceRecords=$totalMappedSourceRecords,")
append("totalMappedTargetRecords=$totalMappedTargetRecords,")
append("totalRecordsProcessed=$totalRecordsProcessed")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputRecords ?: 0
result = 31 * result + (recordsNotProcessed ?: 0)
result = 31 * result + (totalMappedRecords ?: 0)
result = 31 * result + (totalMappedSourceRecords ?: 0)
result = 31 * result + (totalMappedTargetRecords ?: 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 IdMappingJobMetrics
if (inputRecords != other.inputRecords) return false
if (recordsNotProcessed != other.recordsNotProcessed) return false
if (totalMappedRecords != other.totalMappedRecords) return false
if (totalMappedSourceRecords != other.totalMappedSourceRecords) return false
if (totalMappedTargetRecords != other.totalMappedTargetRecords) return false
if (totalRecordsProcessed != other.totalRecordsProcessed) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.entityresolution.model.IdMappingJobMetrics = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The total number of records that were input for processing.
*/
public var inputRecords: kotlin.Int? = null
/**
* The total number of records that did not get processed.
*/
public var recordsNotProcessed: kotlin.Int? = null
/**
* The total number of records that were mapped.
*/
public var totalMappedRecords: kotlin.Int? = null
/**
* The total number of mapped source records.
*/
public var totalMappedSourceRecords: kotlin.Int? = null
/**
* The total number of distinct mapped target records.
*/
public var totalMappedTargetRecords: kotlin.Int? = null
/**
* The total number of records that were processed.
*/
public var totalRecordsProcessed: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.IdMappingJobMetrics) : this() {
this.inputRecords = x.inputRecords
this.recordsNotProcessed = x.recordsNotProcessed
this.totalMappedRecords = x.totalMappedRecords
this.totalMappedSourceRecords = x.totalMappedSourceRecords
this.totalMappedTargetRecords = x.totalMappedTargetRecords
this.totalRecordsProcessed = x.totalRecordsProcessed
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.entityresolution.model.IdMappingJobMetrics = IdMappingJobMetrics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy