commonMain.aws.sdk.kotlin.services.iotwireless.serde.LoRaWanGatewayDocumentSerializer.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.LoRaWanGateway
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 serializeLoRaWanGatewayDocument(serializer: Serializer, input: LoRaWanGateway) {
val BEACONING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Beaconing"))
val GATEWAYEUI_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("GatewayEui"))
val JOINEUIFILTERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("JoinEuiFilters"))
val JOINEUIFILTERS_C0_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List)
val MAXEIRP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Float, JsonSerialName("MaxEirp"))
val NETIDFILTERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("NetIdFilters"))
val RFREGION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RfRegion"))
val SUBBANDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("SubBands"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(BEACONING_DESCRIPTOR)
field(GATEWAYEUI_DESCRIPTOR)
field(JOINEUIFILTERS_DESCRIPTOR)
field(MAXEIRP_DESCRIPTOR)
field(NETIDFILTERS_DESCRIPTOR)
field(RFREGION_DESCRIPTOR)
field(SUBBANDS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.gatewayEui?.let { field(GATEWAYEUI_DESCRIPTOR, it) }
input.rfRegion?.let { field(RFREGION_DESCRIPTOR, it) }
if (input.joinEuiFilters != null) {
listField(JOINEUIFILTERS_DESCRIPTOR) {
for (el0 in input.joinEuiFilters) {
serializer.serializeList(JOINEUIFILTERS_C0_DESCRIPTOR) {
for (el1 in el0) {
serializeString(el1)
}
}
}
}
}
if (input.netIdFilters != null) {
listField(NETIDFILTERS_DESCRIPTOR) {
for (el0 in input.netIdFilters) {
serializeString(el0)
}
}
}
if (input.subBands != null) {
listField(SUBBANDS_DESCRIPTOR) {
for (el0 in input.subBands) {
serializeInt(el0)
}
}
}
input.beaconing?.let { field(BEACONING_DESCRIPTOR, it, ::serializeBeaconingDocument) }
input.maxEirp?.let { field(MAXEIRP_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy