commonMain.aws.sdk.kotlin.services.glue.serde.S3ParquetSourceDocumentSerializer.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.S3ParquetSource
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 serializeS3ParquetSourceDocument(serializer: Serializer, input: S3ParquetSource) {
val ADDITIONALOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AdditionalOptions"))
val COMPRESSIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("CompressionType"))
val EXCLUSIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Exclusions"))
val GROUPFILES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("GroupFiles"))
val GROUPSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("GroupSize"))
val MAXBAND_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxBand"))
val MAXFILESINBAND_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxFilesInBand"))
val NAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Name"))
val OUTPUTSCHEMAS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("OutputSchemas"))
val PATHS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Paths"))
val RECURSE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("Recurse"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ADDITIONALOPTIONS_DESCRIPTOR)
field(COMPRESSIONTYPE_DESCRIPTOR)
field(EXCLUSIONS_DESCRIPTOR)
field(GROUPFILES_DESCRIPTOR)
field(GROUPSIZE_DESCRIPTOR)
field(MAXBAND_DESCRIPTOR)
field(MAXFILESINBAND_DESCRIPTOR)
field(NAME_DESCRIPTOR)
field(OUTPUTSCHEMAS_DESCRIPTOR)
field(PATHS_DESCRIPTOR)
field(RECURSE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(NAME_DESCRIPTOR, input.name)
listField(PATHS_DESCRIPTOR) {
for (el0 in input.paths) {
serializeString(el0)
}
}
input.compressionType?.let { field(COMPRESSIONTYPE_DESCRIPTOR, it.value) }
if (input.exclusions != null) {
listField(EXCLUSIONS_DESCRIPTOR) {
for (el0 in input.exclusions) {
serializeString(el0)
}
}
}
input.groupSize?.let { field(GROUPSIZE_DESCRIPTOR, it) }
input.groupFiles?.let { field(GROUPFILES_DESCRIPTOR, it) }
input.recurse?.let { field(RECURSE_DESCRIPTOR, it) }
input.maxBand?.let { field(MAXBAND_DESCRIPTOR, it) }
input.maxFilesInBand?.let { field(MAXFILESINBAND_DESCRIPTOR, it) }
input.additionalOptions?.let { field(ADDITIONALOPTIONS_DESCRIPTOR, it, ::serializeS3DirectSourceAdditionalOptionsDocument) }
if (input.outputSchemas != null) {
listField(OUTPUTSCHEMAS_DESCRIPTOR) {
for (el0 in input.outputSchemas) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeGlueSchemaDocument))
}
}
}
}
}