
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.serde.TrustStoreAssociationDocumentDeserializer.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.TrustStoreAssociation
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 deserializeTrustStoreAssociationDocument(reader: XmlTagReader): TrustStoreAssociation {
val builder = TrustStoreAssociation.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// ResourceArn com.amazonaws.elasticloadbalancingv2#TrustStoreAssociation$ResourceArn
"ResourceArn" -> builder.resourceArn = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.elasticloadbalancingv2#TrustStoreAssociationResourceArn`)" }
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy