All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.elasticbeanstalk.serde.EnvironmentResourceDescriptionDocumentDeserializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.31
Show newest version
// 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()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy