commonMain.aws.sdk.kotlin.services.glue.serde.AuditContextDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.serde
import aws.sdk.kotlin.services.glue.model.AuditContext
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.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
internal fun serializeAuditContextDocument(serializer: Serializer, input: AuditContext) {
val ADDITIONALAUDITCONTEXT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AdditionalAuditContext"))
val ALLCOLUMNSREQUESTED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AllColumnsRequested"))
val REQUESTEDCOLUMNS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("RequestedColumns"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ADDITIONALAUDITCONTEXT_DESCRIPTOR)
field(ALLCOLUMNSREQUESTED_DESCRIPTOR)
field(REQUESTEDCOLUMNS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.additionalAuditContext?.let { field(ADDITIONALAUDITCONTEXT_DESCRIPTOR, it) }
if (input.requestedColumns != null) {
listField(REQUESTEDCOLUMNS_DESCRIPTOR) {
for (el0 in input.requestedColumns) {
serializeString(el0)
}
}
}
input.allColumnsRequested?.let { field(ALLCOLUMNSREQUESTED_DESCRIPTOR, it) }
}
}