
commonMain.aws.sdk.kotlin.services.mgn.transform.PostLaunchActionsStatusDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.transform
import aws.sdk.kotlin.services.mgn.model.JobPostLaunchActionsLaunchStatus
import aws.sdk.kotlin.services.mgn.model.PostLaunchActionsStatus
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 deserializePostLaunchActionsStatusDocument(deserializer: Deserializer): PostLaunchActionsStatus {
val builder = PostLaunchActionsStatus.Builder()
val POSTLAUNCHACTIONSLAUNCHSTATUSLIST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("postLaunchActionsLaunchStatusList"))
val SSMAGENTDISCOVERYDATETIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ssmAgentDiscoveryDatetime"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(POSTLAUNCHACTIONSLAUNCHSTATUSLIST_DESCRIPTOR)
field(SSMAGENTDISCOVERYDATETIME_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
POSTLAUNCHACTIONSLAUNCHSTATUSLIST_DESCRIPTOR.index -> builder.postLaunchActionsLaunchStatusList =
deserializer.deserializeList(POSTLAUNCHACTIONSLAUNCHSTATUSLIST_DESCRIPTOR) {
val col0 = mutableListOf()
while (hasNextElement()) {
val el0 = if (nextHasValue()) { deserializeJobPostLaunchActionsLaunchStatusDocument(deserializer) } else { deserializeNull(); continue }
col0.add(el0)
}
col0
}
SSMAGENTDISCOVERYDATETIME_DESCRIPTOR.index -> builder.ssmAgentDiscoveryDatetime = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy