
commonMain.aws.sdk.kotlin.services.cloudfront.serde.StreamingLoggingConfigDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudfront.serde
import aws.sdk.kotlin.services.cloudfront.model.StreamingLoggingConfig
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.XmlNamespace
import aws.smithy.kotlin.runtime.serde.xml.XmlSerialName
internal fun serializeStreamingLoggingConfigDocument(serializer: Serializer, input: StreamingLoggingConfig) {
val BUCKET_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("Bucket"))
val ENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, XmlSerialName("Enabled"))
val PREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, XmlSerialName("Prefix"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
trait(XmlSerialName("StreamingLoggingConfig"))
trait(XmlNamespace("http://cloudfront.amazonaws.com/doc/2020-05-31/"))
field(BUCKET_DESCRIPTOR)
field(ENABLED_DESCRIPTOR)
field(PREFIX_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(BUCKET_DESCRIPTOR, input.bucket)
field(ENABLED_DESCRIPTOR, input.enabled)
field(PREFIX_DESCRIPTOR, input.prefix)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy