commonMain.aws.sdk.kotlin.services.glue.serde.CreateCsvClassifierRequestDocumentSerializer.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.CreateCsvClassifierRequest
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 serializeCreateCsvClassifierRequestDocument(serializer: Serializer, input: CreateCsvClassifierRequest) {
val ALLOWSINGLECOLUMN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AllowSingleColumn"))
val CONTAINSHEADER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ContainsHeader"))
val CUSTOMDATATYPECONFIGURED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CustomDatatypeConfigured"))
val CUSTOMDATATYPES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("CustomDatatypes"))
val DELIMITER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Delimiter"))
val DISABLEVALUETRIMMING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("DisableValueTrimming"))
val HEADER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Header"))
val NAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Name"))
val QUOTESYMBOL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("QuoteSymbol"))
val SERDE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Serde"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ALLOWSINGLECOLUMN_DESCRIPTOR)
field(CONTAINSHEADER_DESCRIPTOR)
field(CUSTOMDATATYPECONFIGURED_DESCRIPTOR)
field(CUSTOMDATATYPES_DESCRIPTOR)
field(DELIMITER_DESCRIPTOR)
field(DISABLEVALUETRIMMING_DESCRIPTOR)
field(HEADER_DESCRIPTOR)
field(NAME_DESCRIPTOR)
field(QUOTESYMBOL_DESCRIPTOR)
field(SERDE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(NAME_DESCRIPTOR, input.name)
input.delimiter?.let { field(DELIMITER_DESCRIPTOR, it) }
input.quoteSymbol?.let { field(QUOTESYMBOL_DESCRIPTOR, it) }
input.containsHeader?.let { field(CONTAINSHEADER_DESCRIPTOR, it.value) }
if (input.header != null) {
listField(HEADER_DESCRIPTOR) {
for (el0 in input.header) {
serializeString(el0)
}
}
}
input.disableValueTrimming?.let { field(DISABLEVALUETRIMMING_DESCRIPTOR, it) }
input.allowSingleColumn?.let { field(ALLOWSINGLECOLUMN_DESCRIPTOR, it) }
input.customDatatypeConfigured?.let { field(CUSTOMDATATYPECONFIGURED_DESCRIPTOR, it) }
if (input.customDatatypes != null) {
listField(CUSTOMDATATYPES_DESCRIPTOR) {
for (el0 in input.customDatatypes) {
serializeString(el0)
}
}
}
input.serde?.let { field(SERDE_DESCRIPTOR, it.value) }
}
}