commonMain.aws.sdk.kotlin.services.entityresolution.serde.IdMappingJobMetricsDocumentDeserializer.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.serde
import aws.sdk.kotlin.services.entityresolution.model.IdMappingJobMetrics
import aws.smithy.kotlin.runtime.serde.Deserializer
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
internal fun deserializeIdMappingJobMetricsDocument(deserializer: Deserializer): IdMappingJobMetrics {
val builder = IdMappingJobMetrics.Builder()
val INPUTRECORDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("inputRecords"))
val RECORDSNOTPROCESSED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("recordsNotProcessed"))
val TOTALMAPPEDRECORDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("totalMappedRecords"))
val TOTALMAPPEDSOURCERECORDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("totalMappedSourceRecords"))
val TOTALMAPPEDTARGETRECORDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("totalMappedTargetRecords"))
val TOTALRECORDSPROCESSED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("totalRecordsProcessed"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(INPUTRECORDS_DESCRIPTOR)
field(RECORDSNOTPROCESSED_DESCRIPTOR)
field(TOTALMAPPEDRECORDS_DESCRIPTOR)
field(TOTALMAPPEDSOURCERECORDS_DESCRIPTOR)
field(TOTALMAPPEDTARGETRECORDS_DESCRIPTOR)
field(TOTALRECORDSPROCESSED_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
INPUTRECORDS_DESCRIPTOR.index -> builder.inputRecords = deserializeInt()
RECORDSNOTPROCESSED_DESCRIPTOR.index -> builder.recordsNotProcessed = deserializeInt()
TOTALMAPPEDRECORDS_DESCRIPTOR.index -> builder.totalMappedRecords = deserializeInt()
TOTALMAPPEDSOURCERECORDS_DESCRIPTOR.index -> builder.totalMappedSourceRecords = deserializeInt()
TOTALMAPPEDTARGETRECORDS_DESCRIPTOR.index -> builder.totalMappedTargetRecords = deserializeInt()
TOTALRECORDSPROCESSED_DESCRIPTOR.index -> builder.totalRecordsProcessed = deserializeInt()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy