All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.serde.ColumnStatisticsDataDocumentSerializer.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.ColumnStatisticsData
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 serializeColumnStatisticsDataDocument(serializer: Serializer, input: ColumnStatisticsData) {
    val BINARYCOLUMNSTATISTICSDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BinaryColumnStatisticsData"))
    val BOOLEANCOLUMNSTATISTICSDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BooleanColumnStatisticsData"))
    val DATECOLUMNSTATISTICSDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DateColumnStatisticsData"))
    val DECIMALCOLUMNSTATISTICSDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DecimalColumnStatisticsData"))
    val DOUBLECOLUMNSTATISTICSDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DoubleColumnStatisticsData"))
    val LONGCOLUMNSTATISTICSDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("LongColumnStatisticsData"))
    val STRINGCOLUMNSTATISTICSDATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("StringColumnStatisticsData"))
    val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Type"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(BINARYCOLUMNSTATISTICSDATA_DESCRIPTOR)
        field(BOOLEANCOLUMNSTATISTICSDATA_DESCRIPTOR)
        field(DATECOLUMNSTATISTICSDATA_DESCRIPTOR)
        field(DECIMALCOLUMNSTATISTICSDATA_DESCRIPTOR)
        field(DOUBLECOLUMNSTATISTICSDATA_DESCRIPTOR)
        field(LONGCOLUMNSTATISTICSDATA_DESCRIPTOR)
        field(STRINGCOLUMNSTATISTICSDATA_DESCRIPTOR)
        field(TYPE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        field(TYPE_DESCRIPTOR, input.type.value)
        input.booleanColumnStatisticsData?.let { field(BOOLEANCOLUMNSTATISTICSDATA_DESCRIPTOR, it, ::serializeBooleanColumnStatisticsDataDocument) }
        input.dateColumnStatisticsData?.let { field(DATECOLUMNSTATISTICSDATA_DESCRIPTOR, it, ::serializeDateColumnStatisticsDataDocument) }
        input.decimalColumnStatisticsData?.let { field(DECIMALCOLUMNSTATISTICSDATA_DESCRIPTOR, it, ::serializeDecimalColumnStatisticsDataDocument) }
        input.doubleColumnStatisticsData?.let { field(DOUBLECOLUMNSTATISTICSDATA_DESCRIPTOR, it, ::serializeDoubleColumnStatisticsDataDocument) }
        input.longColumnStatisticsData?.let { field(LONGCOLUMNSTATISTICSDATA_DESCRIPTOR, it, ::serializeLongColumnStatisticsDataDocument) }
        input.stringColumnStatisticsData?.let { field(STRINGCOLUMNSTATISTICSDATA_DESCRIPTOR, it, ::serializeStringColumnStatisticsDataDocument) }
        input.binaryColumnStatisticsData?.let { field(BINARYCOLUMNSTATISTICSDATA_DESCRIPTOR, it, ::serializeBinaryColumnStatisticsDataDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy