commonMain.aws.sdk.kotlin.services.glue.serde.SourceTableConfigDocumentSerializer.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.serde
import aws.sdk.kotlin.services.glue.model.SourceTableConfig
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 serializeSourceTableConfigDocument(serializer: Serializer, input: SourceTableConfig) {
val FIELDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Fields"))
val FILTERPREDICATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("FilterPredicate"))
val PRIMARYKEY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("PrimaryKey"))
val RECORDUPDATEFIELD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RecordUpdateField"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(FIELDS_DESCRIPTOR)
field(FILTERPREDICATE_DESCRIPTOR)
field(PRIMARYKEY_DESCRIPTOR)
field(RECORDUPDATEFIELD_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
if (input.fields != null) {
listField(FIELDS_DESCRIPTOR) {
for (el0 in input.fields) {
serializeString(el0)
}
}
}
input.filterPredicate?.let { field(FILTERPREDICATE_DESCRIPTOR, it) }
if (input.primaryKey != null) {
listField(PRIMARYKEY_DESCRIPTOR) {
for (el0 in input.primaryKey) {
serializeString(el0)
}
}
}
input.recordUpdateField?.let { field(RECORDUPDATEFIELD_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy