
commonMain.aws.sdk.kotlin.services.s3.serde.InventoryEncryptionDocumentDeserializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.serde
import aws.sdk.kotlin.services.s3.model.InventoryEncryption
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
internal fun deserializeInventoryEncryptionDocument(reader: XmlTagReader): InventoryEncryption {
val builder = InventoryEncryption.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// SSES3 com.amazonaws.s3#InventoryEncryption$SSES3
"SSE-S3" -> builder.sses3 = deserializeSses3Document(curr)
// SSEKMS com.amazonaws.s3#InventoryEncryption$SSEKMS
"SSE-KMS" -> builder.ssekms = deserializeSsekmsDocument(curr)
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy