commonMain.aws.sdk.kotlin.services.applicationsignals.serde.ServiceSummaryDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationsignals-jvm Show documentation
Show all versions of applicationsignals-jvm Show documentation
The AWS SDK for Kotlin client for Application Signals
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationsignals.serde
import aws.sdk.kotlin.services.applicationsignals.model.MetricReference
import aws.sdk.kotlin.services.applicationsignals.model.ServiceSummary
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
import kotlin.collections.mutableListOf
import kotlin.collections.mutableMapOf
internal fun deserializeServiceSummaryDocument(deserializer: Deserializer): ServiceSummary {
val builder = ServiceSummary.Builder()
val ATTRIBUTEMAPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("AttributeMaps"))
val ATTRIBUTEMAPS_C0_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Map)
val KEYATTRIBUTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Map, JsonSerialName("KeyAttributes"))
val METRICREFERENCES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("MetricReferences"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ATTRIBUTEMAPS_DESCRIPTOR)
field(KEYATTRIBUTES_DESCRIPTOR)
field(METRICREFERENCES_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ATTRIBUTEMAPS_DESCRIPTOR.index -> builder.attributeMaps =
deserializer.deserializeList(ATTRIBUTEMAPS_DESCRIPTOR) {
val col0 = mutableListOf
© 2015 - 2025 Weber Informatics LLC | Privacy Policy