commonMain.aws.sdk.kotlin.services.iotwireless.serde.LteObjDocumentSerializer.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.LteObj
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 serializeLteObjDocument(serializer: Serializer, input: LteObj) {
val EUTRANCID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("EutranCid"))
val LTELOCALID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("LteLocalId"))
val LTENMR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("LteNmr"))
val LTETIMINGADVANCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("LteTimingAdvance"))
val MCC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Mcc"))
val MNC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Mnc"))
val NRCAPABLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("NrCapable"))
val RSRP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Rsrp"))
val RSRQ_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Float, JsonSerialName("Rsrq"))
val TAC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("Tac"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(EUTRANCID_DESCRIPTOR)
field(LTELOCALID_DESCRIPTOR)
field(LTENMR_DESCRIPTOR)
field(LTETIMINGADVANCE_DESCRIPTOR)
field(MCC_DESCRIPTOR)
field(MNC_DESCRIPTOR)
field(NRCAPABLE_DESCRIPTOR)
field(RSRP_DESCRIPTOR)
field(RSRQ_DESCRIPTOR)
field(TAC_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(MCC_DESCRIPTOR, input.mcc)
field(MNC_DESCRIPTOR, input.mnc)
field(EUTRANCID_DESCRIPTOR, input.eutranCid)
input.tac?.let { field(TAC_DESCRIPTOR, it) }
input.lteLocalId?.let { field(LTELOCALID_DESCRIPTOR, it, ::serializeLteLocalIdDocument) }
input.lteTimingAdvance?.let { field(LTETIMINGADVANCE_DESCRIPTOR, it) }
input.rsrp?.let { field(RSRP_DESCRIPTOR, it) }
input.rsrq?.let { field(RSRQ_DESCRIPTOR, it) }
if (input.nrCapable != false) field(NRCAPABLE_DESCRIPTOR, input.nrCapable)
if (input.lteNmr != null) {
listField(LTENMR_DESCRIPTOR) {
for (el0 in input.lteNmr) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeLteNmrObjDocument))
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy