commonMain.aws.sdk.kotlin.services.glue.serde.CrawlerTargetsDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.serde
import aws.sdk.kotlin.services.glue.model.CrawlerTargets
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 serializeCrawlerTargetsDocument(serializer: Serializer, input: CrawlerTargets) {
val CATALOGTARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("CatalogTargets"))
val DELTATARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("DeltaTargets"))
val DYNAMODBTARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("DynamoDBTargets"))
val HUDITARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("HudiTargets"))
val ICEBERGTARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("IcebergTargets"))
val JDBCTARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("JdbcTargets"))
val MONGODBTARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("MongoDBTargets"))
val S3TARGETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("S3Targets"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CATALOGTARGETS_DESCRIPTOR)
field(DELTATARGETS_DESCRIPTOR)
field(DYNAMODBTARGETS_DESCRIPTOR)
field(HUDITARGETS_DESCRIPTOR)
field(ICEBERGTARGETS_DESCRIPTOR)
field(JDBCTARGETS_DESCRIPTOR)
field(MONGODBTARGETS_DESCRIPTOR)
field(S3TARGETS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
if (input.s3Targets != null) {
listField(S3TARGETS_DESCRIPTOR) {
for (el0 in input.s3Targets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeS3TargetDocument))
}
}
}
if (input.jdbcTargets != null) {
listField(JDBCTARGETS_DESCRIPTOR) {
for (el0 in input.jdbcTargets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeJdbcTargetDocument))
}
}
}
if (input.mongoDbTargets != null) {
listField(MONGODBTARGETS_DESCRIPTOR) {
for (el0 in input.mongoDbTargets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeMongoDbTargetDocument))
}
}
}
if (input.dynamoDbTargets != null) {
listField(DYNAMODBTARGETS_DESCRIPTOR) {
for (el0 in input.dynamoDbTargets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeDynamoDbTargetDocument))
}
}
}
if (input.catalogTargets != null) {
listField(CATALOGTARGETS_DESCRIPTOR) {
for (el0 in input.catalogTargets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeCatalogTargetDocument))
}
}
}
if (input.deltaTargets != null) {
listField(DELTATARGETS_DESCRIPTOR) {
for (el0 in input.deltaTargets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeDeltaTargetDocument))
}
}
}
if (input.icebergTargets != null) {
listField(ICEBERGTARGETS_DESCRIPTOR) {
for (el0 in input.icebergTargets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeIcebergTargetDocument))
}
}
}
if (input.hudiTargets != null) {
listField(HUDITARGETS_DESCRIPTOR) {
for (el0 in input.hudiTargets) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeHudiTargetDocument))
}
}
}
}
}