commonMain.aws.sdk.kotlin.services.appconfig.serde.HostedConfigurationVersionSummaryDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appconfig-jvm Show documentation
Show all versions of appconfig-jvm Show documentation
The AWS SDK for Kotlin client for AppConfig
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appconfig.serde
import aws.sdk.kotlin.services.appconfig.model.HostedConfigurationVersionSummary
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 deserializeHostedConfigurationVersionSummaryDocument(deserializer: Deserializer): HostedConfigurationVersionSummary {
val builder = HostedConfigurationVersionSummary.Builder()
val APPLICATIONID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ApplicationId"))
val CONFIGURATIONPROFILEID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ConfigurationProfileId"))
val CONTENTTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ContentType"))
val DESCRIPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Description"))
val KMSKEYARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("KmsKeyArn"))
val VERSIONLABEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("VersionLabel"))
val VERSIONNUMBER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("VersionNumber"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(APPLICATIONID_DESCRIPTOR)
field(CONFIGURATIONPROFILEID_DESCRIPTOR)
field(CONTENTTYPE_DESCRIPTOR)
field(DESCRIPTION_DESCRIPTOR)
field(KMSKEYARN_DESCRIPTOR)
field(VERSIONLABEL_DESCRIPTOR)
field(VERSIONNUMBER_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
APPLICATIONID_DESCRIPTOR.index -> builder.applicationId = deserializeString()
CONFIGURATIONPROFILEID_DESCRIPTOR.index -> builder.configurationProfileId = deserializeString()
CONTENTTYPE_DESCRIPTOR.index -> builder.contentType = deserializeString()
DESCRIPTION_DESCRIPTOR.index -> builder.description = deserializeString()
KMSKEYARN_DESCRIPTOR.index -> builder.kmsKeyArn = deserializeString()
VERSIONLABEL_DESCRIPTOR.index -> builder.versionLabel = deserializeString()
VERSIONNUMBER_DESCRIPTOR.index -> builder.versionNumber = deserializeInt()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy