commonMain.aws.sdk.kotlin.services.iotwireless.serde.WcdmaNmrObjDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.serde
import aws.sdk.kotlin.services.iotwireless.model.WcdmaNmrObj
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 serializeWcdmaNmrObjDocument(serializer: Serializer, input: WcdmaNmrObj) {
val PATHLOSS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("PathLoss"))
val PSC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Psc"))
val RSCP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Rscp"))
val UARFCNDL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Uarfcndl"))
val UTRANCID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("UtranCid"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(PATHLOSS_DESCRIPTOR)
field(PSC_DESCRIPTOR)
field(RSCP_DESCRIPTOR)
field(UARFCNDL_DESCRIPTOR)
field(UTRANCID_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(UARFCNDL_DESCRIPTOR, input.uarfcndl)
field(PSC_DESCRIPTOR, input.psc)
field(UTRANCID_DESCRIPTOR, input.utranCid)
input.rscp?.let { field(RSCP_DESCRIPTOR, it) }
input.pathLoss?.let { field(PATHLOSS_DESCRIPTOR, it) }
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy