All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
commonMain.aws.sdk.kotlin.services.glue.serde.S3CsvSourceDocumentSerializer.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.S3CsvSource
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 serializeS3CsvSourceDocument(serializer: Serializer, input: S3CsvSource) {
val ADDITIONALOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AdditionalOptions"))
val COMPRESSIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("CompressionType"))
val ESCAPER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Escaper"))
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 MULTILINE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("Multiline"))
val NAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Name"))
val OPTIMIZEPERFORMANCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("OptimizePerformance"))
val OUTPUTSCHEMAS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("OutputSchemas"))
val PATHS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Paths"))
val QUOTECHAR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("QuoteChar"))
val RECURSE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("Recurse"))
val SEPARATOR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Separator"))
val SKIPFIRST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("SkipFirst"))
val WITHHEADER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("WithHeader"))
val WRITEHEADER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("WriteHeader"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ADDITIONALOPTIONS_DESCRIPTOR)
field(COMPRESSIONTYPE_DESCRIPTOR)
field(ESCAPER_DESCRIPTOR)
field(EXCLUSIONS_DESCRIPTOR)
field(GROUPFILES_DESCRIPTOR)
field(GROUPSIZE_DESCRIPTOR)
field(MAXBAND_DESCRIPTOR)
field(MAXFILESINBAND_DESCRIPTOR)
field(MULTILINE_DESCRIPTOR)
field(NAME_DESCRIPTOR)
field(OPTIMIZEPERFORMANCE_DESCRIPTOR)
field(OUTPUTSCHEMAS_DESCRIPTOR)
field(PATHS_DESCRIPTOR)
field(QUOTECHAR_DESCRIPTOR)
field(RECURSE_DESCRIPTOR)
field(SEPARATOR_DESCRIPTOR)
field(SKIPFIRST_DESCRIPTOR)
field(WITHHEADER_DESCRIPTOR)
field(WRITEHEADER_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) }
field(SEPARATOR_DESCRIPTOR, input.separator.value)
input.escaper?.let { field(ESCAPER_DESCRIPTOR, it) }
field(QUOTECHAR_DESCRIPTOR, input.quoteChar.value)
input.multiline?.let { field(MULTILINE_DESCRIPTOR, it) }
input.withHeader?.let { field(WITHHEADER_DESCRIPTOR, it) }
input.writeHeader?.let { field(WRITEHEADER_DESCRIPTOR, it) }
input.skipFirst?.let { field(SKIPFIRST_DESCRIPTOR, it) }
if (input.optimizePerformance != false) field(OPTIMIZEPERFORMANCE_DESCRIPTOR, input.optimizePerformance)
if (input.outputSchemas != null) {
listField(OUTPUTSCHEMAS_DESCRIPTOR) {
for (el0 in input.outputSchemas) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeGlueSchemaDocument))
}
}
}
}
}