
commonMain.aws.sdk.kotlin.services.s3.serde.TargetObjectKeyFormatDocumentDeserializer.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.TargetObjectKeyFormat
import aws.smithy.kotlin.runtime.serde.xml.XmlTagReader
internal fun deserializeTargetObjectKeyFormatDocument(reader: XmlTagReader): TargetObjectKeyFormat {
val builder = TargetObjectKeyFormat.Builder()
loop@while (true) {
val curr = reader.nextTag() ?: break@loop
when (curr.tagName) {
// SimplePrefix com.amazonaws.s3#TargetObjectKeyFormat$SimplePrefix
"SimplePrefix" -> builder.simplePrefix = deserializeSimplePrefixDocument(curr)
// PartitionedPrefix com.amazonaws.s3#TargetObjectKeyFormat$PartitionedPrefix
"PartitionedPrefix" -> builder.partitionedPrefix = deserializePartitionedPrefixDocument(curr)
else -> {}
}
curr.drop()
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy