commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.TableStatisticsDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databasemigrationservice.serde
import aws.sdk.kotlin.services.databasemigrationservice.model.TableStatistics
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
import aws.smithy.kotlin.runtime.time.Instant
import aws.smithy.kotlin.runtime.time.TimestampFormat
internal fun deserializeTableStatisticsDocument(deserializer: Deserializer): TableStatistics {
val builder = TableStatistics.Builder()
val APPLIEDDDLS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("AppliedDdls"))
val APPLIEDDELETES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("AppliedDeletes"))
val APPLIEDINSERTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("AppliedInserts"))
val APPLIEDUPDATES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("AppliedUpdates"))
val DDLS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("Ddls"))
val DELETES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("Deletes"))
val FULLLOADCONDTNLCHKFAILEDROWS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("FullLoadCondtnlChkFailedRows"))
val FULLLOADENDTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("FullLoadEndTime"))
val FULLLOADERRORROWS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("FullLoadErrorRows"))
val FULLLOADRELOADED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("FullLoadReloaded"))
val FULLLOADROWS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("FullLoadRows"))
val FULLLOADSTARTTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("FullLoadStartTime"))
val INSERTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("Inserts"))
val LASTUPDATETIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("LastUpdateTime"))
val SCHEMANAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SchemaName"))
val TABLENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TableName"))
val TABLESTATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TableState"))
val UPDATES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("Updates"))
val VALIDATIONFAILEDRECORDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("ValidationFailedRecords"))
val VALIDATIONPENDINGRECORDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("ValidationPendingRecords"))
val VALIDATIONSTATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ValidationState"))
val VALIDATIONSTATEDETAILS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ValidationStateDetails"))
val VALIDATIONSUSPENDEDRECORDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("ValidationSuspendedRecords"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(APPLIEDDDLS_DESCRIPTOR)
field(APPLIEDDELETES_DESCRIPTOR)
field(APPLIEDINSERTS_DESCRIPTOR)
field(APPLIEDUPDATES_DESCRIPTOR)
field(DDLS_DESCRIPTOR)
field(DELETES_DESCRIPTOR)
field(FULLLOADCONDTNLCHKFAILEDROWS_DESCRIPTOR)
field(FULLLOADENDTIME_DESCRIPTOR)
field(FULLLOADERRORROWS_DESCRIPTOR)
field(FULLLOADRELOADED_DESCRIPTOR)
field(FULLLOADROWS_DESCRIPTOR)
field(FULLLOADSTARTTIME_DESCRIPTOR)
field(INSERTS_DESCRIPTOR)
field(LASTUPDATETIME_DESCRIPTOR)
field(SCHEMANAME_DESCRIPTOR)
field(TABLENAME_DESCRIPTOR)
field(TABLESTATE_DESCRIPTOR)
field(UPDATES_DESCRIPTOR)
field(VALIDATIONFAILEDRECORDS_DESCRIPTOR)
field(VALIDATIONPENDINGRECORDS_DESCRIPTOR)
field(VALIDATIONSTATE_DESCRIPTOR)
field(VALIDATIONSTATEDETAILS_DESCRIPTOR)
field(VALIDATIONSUSPENDEDRECORDS_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
APPLIEDDDLS_DESCRIPTOR.index -> builder.appliedDdls = deserializeLong()
APPLIEDDELETES_DESCRIPTOR.index -> builder.appliedDeletes = deserializeLong()
APPLIEDINSERTS_DESCRIPTOR.index -> builder.appliedInserts = deserializeLong()
APPLIEDUPDATES_DESCRIPTOR.index -> builder.appliedUpdates = deserializeLong()
DDLS_DESCRIPTOR.index -> builder.ddls = deserializeLong()
DELETES_DESCRIPTOR.index -> builder.deletes = deserializeLong()
FULLLOADCONDTNLCHKFAILEDROWS_DESCRIPTOR.index -> builder.fullLoadCondtnlChkFailedRows = deserializeLong()
FULLLOADENDTIME_DESCRIPTOR.index -> builder.fullLoadEndTime = deserializeInstant(TimestampFormat.EPOCH_SECONDS)
FULLLOADERRORROWS_DESCRIPTOR.index -> builder.fullLoadErrorRows = deserializeLong()
FULLLOADRELOADED_DESCRIPTOR.index -> builder.fullLoadReloaded = deserializeBoolean()
FULLLOADROWS_DESCRIPTOR.index -> builder.fullLoadRows = deserializeLong()
FULLLOADSTARTTIME_DESCRIPTOR.index -> builder.fullLoadStartTime = deserializeInstant(TimestampFormat.EPOCH_SECONDS)
INSERTS_DESCRIPTOR.index -> builder.inserts = deserializeLong()
LASTUPDATETIME_DESCRIPTOR.index -> builder.lastUpdateTime = deserializeInstant(TimestampFormat.EPOCH_SECONDS)
SCHEMANAME_DESCRIPTOR.index -> builder.schemaName = deserializeString()
TABLENAME_DESCRIPTOR.index -> builder.tableName = deserializeString()
TABLESTATE_DESCRIPTOR.index -> builder.tableState = deserializeString()
UPDATES_DESCRIPTOR.index -> builder.updates = deserializeLong()
VALIDATIONFAILEDRECORDS_DESCRIPTOR.index -> builder.validationFailedRecords = deserializeLong()
VALIDATIONPENDINGRECORDS_DESCRIPTOR.index -> builder.validationPendingRecords = deserializeLong()
VALIDATIONSTATE_DESCRIPTOR.index -> builder.validationState = deserializeString()
VALIDATIONSTATEDETAILS_DESCRIPTOR.index -> builder.validationStateDetails = deserializeString()
VALIDATIONSUSPENDEDRECORDS_DESCRIPTOR.index -> builder.validationSuspendedRecords = deserializeLong()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy