commonMain.aws.sdk.kotlin.services.iotwireless.serde.LoRaWanGetServiceProfileInfoDocumentDeserializer.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.LoRaWanGetServiceProfileInfo
import aws.smithy.kotlin.runtime.serde.Deserializer
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.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 deserializeLoRaWanGetServiceProfileInfoDocument(deserializer: Deserializer): LoRaWanGetServiceProfileInfo {
val builder = LoRaWanGetServiceProfileInfo.Builder()
val ADDGWMETADATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AddGwMetadata"))
val CHANNELMASK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ChannelMask"))
val DEVSTATUSREQFREQ_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DevStatusReqFreq"))
val DLBUCKETSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DlBucketSize"))
val DLRATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DlRate"))
val DLRATEPOLICY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DlRatePolicy"))
val DRMAX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DrMax"))
val DRMIN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("DrMin"))
val HRALLOWED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("HrAllowed"))
val MINGWDIVERSITY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MinGwDiversity"))
val NWKGEOLOC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("NwkGeoLoc"))
val PRALLOWED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("PrAllowed"))
val RAALLOWED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RaAllowed"))
val REPORTDEVSTATUSBATTERY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ReportDevStatusBattery"))
val REPORTDEVSTATUSMARGIN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("ReportDevStatusMargin"))
val TARGETPER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("TargetPer"))
val ULBUCKETSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("UlBucketSize"))
val ULRATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("UlRate"))
val ULRATEPOLICY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("UlRatePolicy"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ADDGWMETADATA_DESCRIPTOR)
field(CHANNELMASK_DESCRIPTOR)
field(DEVSTATUSREQFREQ_DESCRIPTOR)
field(DLBUCKETSIZE_DESCRIPTOR)
field(DLRATE_DESCRIPTOR)
field(DLRATEPOLICY_DESCRIPTOR)
field(DRMAX_DESCRIPTOR)
field(DRMIN_DESCRIPTOR)
field(HRALLOWED_DESCRIPTOR)
field(MINGWDIVERSITY_DESCRIPTOR)
field(NWKGEOLOC_DESCRIPTOR)
field(PRALLOWED_DESCRIPTOR)
field(RAALLOWED_DESCRIPTOR)
field(REPORTDEVSTATUSBATTERY_DESCRIPTOR)
field(REPORTDEVSTATUSMARGIN_DESCRIPTOR)
field(TARGETPER_DESCRIPTOR)
field(ULBUCKETSIZE_DESCRIPTOR)
field(ULRATE_DESCRIPTOR)
field(ULRATEPOLICY_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ADDGWMETADATA_DESCRIPTOR.index -> builder.addGwMetadata = deserializeBoolean()
CHANNELMASK_DESCRIPTOR.index -> builder.channelMask = deserializeString()
DEVSTATUSREQFREQ_DESCRIPTOR.index -> builder.devStatusReqFreq = deserializeInt()
DLBUCKETSIZE_DESCRIPTOR.index -> builder.dlBucketSize = deserializeInt()
DLRATE_DESCRIPTOR.index -> builder.dlRate = deserializeInt()
DLRATEPOLICY_DESCRIPTOR.index -> builder.dlRatePolicy = deserializeString()
DRMAX_DESCRIPTOR.index -> builder.drMax = deserializeInt()
DRMIN_DESCRIPTOR.index -> builder.drMin = deserializeInt()
HRALLOWED_DESCRIPTOR.index -> builder.hrAllowed = deserializeBoolean()
MINGWDIVERSITY_DESCRIPTOR.index -> builder.minGwDiversity = deserializeInt()
NWKGEOLOC_DESCRIPTOR.index -> builder.nwkGeoLoc = deserializeBoolean()
PRALLOWED_DESCRIPTOR.index -> builder.prAllowed = deserializeBoolean()
RAALLOWED_DESCRIPTOR.index -> builder.raAllowed = deserializeBoolean()
REPORTDEVSTATUSBATTERY_DESCRIPTOR.index -> builder.reportDevStatusBattery = deserializeBoolean()
REPORTDEVSTATUSMARGIN_DESCRIPTOR.index -> builder.reportDevStatusMargin = deserializeBoolean()
TARGETPER_DESCRIPTOR.index -> builder.targetPer = deserializeInt()
ULBUCKETSIZE_DESCRIPTOR.index -> builder.ulBucketSize = deserializeInt()
ULRATE_DESCRIPTOR.index -> builder.ulRate = deserializeInt()
ULRATEPOLICY_DESCRIPTOR.index -> builder.ulRatePolicy = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy