
commonMain.aws.sdk.kotlin.services.mgn.transform.DataReplicationInfoReplicatedDiskDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.transform
import aws.sdk.kotlin.services.mgn.model.DataReplicationInfoReplicatedDisk
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 deserializeDataReplicationInfoReplicatedDiskDocument(deserializer: Deserializer): DataReplicationInfoReplicatedDisk {
val builder = DataReplicationInfoReplicatedDisk.Builder()
val BACKLOGGEDSTORAGEBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("backloggedStorageBytes"))
val DEVICENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("deviceName"))
val REPLICATEDSTORAGEBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("replicatedStorageBytes"))
val RESCANNEDSTORAGEBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("rescannedStorageBytes"))
val TOTALSTORAGEBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("totalStorageBytes"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(BACKLOGGEDSTORAGEBYTES_DESCRIPTOR)
field(DEVICENAME_DESCRIPTOR)
field(REPLICATEDSTORAGEBYTES_DESCRIPTOR)
field(RESCANNEDSTORAGEBYTES_DESCRIPTOR)
field(TOTALSTORAGEBYTES_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
BACKLOGGEDSTORAGEBYTES_DESCRIPTOR.index -> builder.backloggedStorageBytes = deserializeLong()
DEVICENAME_DESCRIPTOR.index -> builder.deviceName = deserializeString()
REPLICATEDSTORAGEBYTES_DESCRIPTOR.index -> builder.replicatedStorageBytes = deserializeLong()
RESCANNEDSTORAGEBYTES_DESCRIPTOR.index -> builder.rescannedStorageBytes = deserializeLong()
TOTALSTORAGEBYTES_DESCRIPTOR.index -> builder.totalStorageBytes = deserializeLong()
null -> break@loop
else -> skipValue()
}
}
}
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy