
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.serde.TargetGroupAttributeDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elasticloadbalancingv2.serde
import aws.sdk.kotlin.services.elasticloadbalancingv2.model.TargetGroupAttribute
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 deserializeTargetGroupAttributeDocument(reader: XmlTagReader): TargetGroupAttribute {
val builder = TargetGroupAttribute.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// Key com.amazonaws.elasticloadbalancingv2#TargetGroupAttribute$Key
"Key" -> builder.key = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.elasticloadbalancingv2#TargetGroupAttributeKey`)" }
// Value com.amazonaws.elasticloadbalancingv2#TargetGroupAttribute$Value
"Value" -> builder.value = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.elasticloadbalancingv2#TargetGroupAttributeValue`)" }
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy