
commonMain.aws.sdk.kotlin.services.mgn.transform.ReplicationConfigurationReplicatedDiskDocumentSerializer.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.ReplicationConfigurationReplicatedDisk
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.Serializer
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 serializeReplicationConfigurationReplicatedDiskDocument(serializer: Serializer, input: ReplicationConfigurationReplicatedDisk) {
val DEVICENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("deviceName"))
val IOPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("iops"))
val ISBOOTDISK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("isBootDisk"))
val STAGINGDISKTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("stagingDiskType"))
val THROUGHPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("throughput"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(DEVICENAME_DESCRIPTOR)
field(IOPS_DESCRIPTOR)
field(ISBOOTDISK_DESCRIPTOR)
field(STAGINGDISKTYPE_DESCRIPTOR)
field(THROUGHPUT_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.deviceName?.let { field(DEVICENAME_DESCRIPTOR, it) }
input.isBootDisk?.let { field(ISBOOTDISK_DESCRIPTOR, it) }
input.stagingDiskType?.let { field(STAGINGDISKTYPE_DESCRIPTOR, it.value) }
if (input.iops != 0L) field(IOPS_DESCRIPTOR, input.iops)
if (input.throughput != 0L) field(THROUGHPUT_DESCRIPTOR, input.throughput)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy