
commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.serde.DescribeTrustStoreRevocationDocumentDeserializer.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.DescribeTrustStoreRevocation
import aws.sdk.kotlin.services.elasticloadbalancingv2.model.RevocationType
import aws.smithy.kotlin.runtime.serde.getOrDeserializeErr
import aws.smithy.kotlin.runtime.serde.parse
import aws.smithy.kotlin.runtime.serde.parseLong
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
import aws.smithy.kotlin.runtime.serde.xml.tryData
internal fun deserializeDescribeTrustStoreRevocationDocument(reader: XmlTagReader): DescribeTrustStoreRevocation {
val builder = DescribeTrustStoreRevocation.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// TrustStoreArn com.amazonaws.elasticloadbalancingv2#DescribeTrustStoreRevocation$TrustStoreArn
"TrustStoreArn" -> builder.trustStoreArn = curr.tryData()
.getOrDeserializeErr { "expected (string: `com.amazonaws.elasticloadbalancingv2#TrustStoreArn`)" }
// RevocationId com.amazonaws.elasticloadbalancingv2#DescribeTrustStoreRevocation$RevocationId
"RevocationId" -> builder.revocationId = curr.tryData()
.parseLong()
.getOrDeserializeErr { "expected (long: `com.amazonaws.elasticloadbalancingv2#RevocationId`)" }
// RevocationType com.amazonaws.elasticloadbalancingv2#DescribeTrustStoreRevocation$RevocationType
"RevocationType" -> builder.revocationType = curr.tryData()
.parse { RevocationType.fromValue(it) }
.getOrDeserializeErr { "expected (enum: `com.amazonaws.elasticloadbalancingv2#RevocationType`)" }
// NumberOfRevokedEntries com.amazonaws.elasticloadbalancingv2#DescribeTrustStoreRevocation$NumberOfRevokedEntries
"NumberOfRevokedEntries" -> builder.numberOfRevokedEntries = curr.tryData()
.parseLong()
.getOrDeserializeErr { "expected (long: `com.amazonaws.elasticloadbalancingv2#NumberOfRevokedEntries`)" }
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy