commonMain.aws.sdk.kotlin.services.elasticbeanstalk.serde.EnvironmentResourceDescriptionDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticbeanstalk-jvm Show documentation
Show all versions of elasticbeanstalk-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Beanstalk
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticbeanstalk.serde
import aws.sdk.kotlin.services.elasticbeanstalk.model.EnvironmentResourceDescription
import aws.smithy.kotlin.runtime.serde.getOrDeserializeErr
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
import aws.smithy.kotlin.runtime.serde.xml.tryData
internal fun deserializeEnvironmentResourceDescriptionDocument(reader: XmlTagReader): EnvironmentResourceDescription {
val builder = EnvironmentResourceDescription.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// EnvironmentName com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$EnvironmentName
"EnvironmentName" -> builder.environmentName = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.elasticbeanstalk#EnvironmentName`)" }
// AutoScalingGroups com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$AutoScalingGroups
"AutoScalingGroups" -> builder.autoScalingGroups = deserializeAutoScalingGroupListShape(curr)
// Instances com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$Instances
"Instances" -> builder.instances = deserializeInstanceListShape(curr)
// LaunchConfigurations com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$LaunchConfigurations
"LaunchConfigurations" -> builder.launchConfigurations = deserializeLaunchConfigurationListShape(curr)
// LaunchTemplates com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$LaunchTemplates
"LaunchTemplates" -> builder.launchTemplates = deserializeLaunchTemplateListShape(curr)
// LoadBalancers com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$LoadBalancers
"LoadBalancers" -> builder.loadBalancers = deserializeLoadBalancerListShape(curr)
// Triggers com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$Triggers
"Triggers" -> builder.triggers = deserializeTriggerListShape(curr)
// Queues com.amazonaws.elasticbeanstalk#EnvironmentResourceDescription$Queues
"Queues" -> builder.queues = deserializeQueueListShape(curr)
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}