commonMain.aws.sdk.kotlin.services.iotwireless.serde.LoRaWanDeviceProfileDocumentSerializer.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.LoRaWanDeviceProfile
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 serializeLoRaWanDeviceProfileDocument(serializer: Serializer, input: LoRaWanDeviceProfile) {
val CLASSBTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ClassBTimeout"))
val CLASSCTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ClassCTimeout"))
val FACTORYPRESETFREQSLIST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("FactoryPresetFreqsList"))
val MACVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("MacVersion"))
val MAXDUTYCYCLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxDutyCycle"))
val MAXEIRP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxEirp"))
val PINGSLOTDR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("PingSlotDr"))
val PINGSLOTFREQ_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("PingSlotFreq"))
val PINGSLOTPERIOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("PingSlotPeriod"))
val REGPARAMSREVISION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RegParamsRevision"))
val RFREGION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RfRegion"))
val RXDATARATE2_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RxDataRate2"))
val RXDELAY1_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RxDelay1"))
val RXDROFFSET1_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RxDrOffset1"))
val RXFREQ2_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RxFreq2"))
val SUPPORTS32BITFCNT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("Supports32BitFCnt"))
val SUPPORTSCLASSB_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("SupportsClassB"))
val SUPPORTSCLASSC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("SupportsClassC"))
val SUPPORTSJOIN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("SupportsJoin"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CLASSBTIMEOUT_DESCRIPTOR)
field(CLASSCTIMEOUT_DESCRIPTOR)
field(FACTORYPRESETFREQSLIST_DESCRIPTOR)
field(MACVERSION_DESCRIPTOR)
field(MAXDUTYCYCLE_DESCRIPTOR)
field(MAXEIRP_DESCRIPTOR)
field(PINGSLOTDR_DESCRIPTOR)
field(PINGSLOTFREQ_DESCRIPTOR)
field(PINGSLOTPERIOD_DESCRIPTOR)
field(REGPARAMSREVISION_DESCRIPTOR)
field(RFREGION_DESCRIPTOR)
field(RXDATARATE2_DESCRIPTOR)
field(RXDELAY1_DESCRIPTOR)
field(RXDROFFSET1_DESCRIPTOR)
field(RXFREQ2_DESCRIPTOR)
field(SUPPORTS32BITFCNT_DESCRIPTOR)
field(SUPPORTSCLASSB_DESCRIPTOR)
field(SUPPORTSCLASSC_DESCRIPTOR)
field(SUPPORTSJOIN_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
if (input.supportsClassB != false) field(SUPPORTSCLASSB_DESCRIPTOR, input.supportsClassB)
input.classBTimeout?.let { field(CLASSBTIMEOUT_DESCRIPTOR, it) }
input.pingSlotPeriod?.let { field(PINGSLOTPERIOD_DESCRIPTOR, it) }
input.pingSlotDr?.let { field(PINGSLOTDR_DESCRIPTOR, it) }
input.pingSlotFreq?.let { field(PINGSLOTFREQ_DESCRIPTOR, it) }
if (input.supportsClassC != false) field(SUPPORTSCLASSC_DESCRIPTOR, input.supportsClassC)
input.classCTimeout?.let { field(CLASSCTIMEOUT_DESCRIPTOR, it) }
input.macVersion?.let { field(MACVERSION_DESCRIPTOR, it) }
input.regParamsRevision?.let { field(REGPARAMSREVISION_DESCRIPTOR, it) }
input.rxDelay1?.let { field(RXDELAY1_DESCRIPTOR, it) }
input.rxDrOffset1?.let { field(RXDROFFSET1_DESCRIPTOR, it) }
input.rxDataRate2?.let { field(RXDATARATE2_DESCRIPTOR, it) }
input.rxFreq2?.let { field(RXFREQ2_DESCRIPTOR, it) }
if (input.factoryPresetFreqsList != null) {
listField(FACTORYPRESETFREQSLIST_DESCRIPTOR) {
for (el0 in input.factoryPresetFreqsList) {
serializeInt(el0)
}
}
}
input.maxEirp?.let { field(MAXEIRP_DESCRIPTOR, it) }
input.maxDutyCycle?.let { field(MAXDUTYCYCLE_DESCRIPTOR, it) }
input.rfRegion?.let { field(RFREGION_DESCRIPTOR, it) }
input.supportsJoin?.let { field(SUPPORTSJOIN_DESCRIPTOR, it) }
if (input.supports32BitFCnt != false) field(SUPPORTS32BITFCNT_DESCRIPTOR, input.supports32BitFCnt)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy