
commonMain.aws.sdk.kotlin.services.s3control.serde.S3ObjectLockLegalHoldDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.serde
import aws.sdk.kotlin.services.s3control.model.S3ObjectLockLegalHold
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
import aws.smithy.kotlin.runtime.serde.xml.XmlDeserializer
import aws.smithy.kotlin.runtime.serde.xml.XmlNamespace
import aws.smithy.kotlin.runtime.serde.xml.XmlSerialName
internal fun serializeS3ObjectLockLegalHoldDocument(serializer: Serializer, input: S3ObjectLockLegalHold) {
val STATUS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, XmlSerialName("Status"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
trait(XmlSerialName("S3ObjectLockLegalHold"))
trait(XmlNamespace("http://awss3control.amazonaws.com/doc/2018-08-20/"))
field(STATUS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(STATUS_DESCRIPTOR, input.status.value)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy