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

commonMain.aws.sdk.kotlin.services.firehose.serde.IcebergDestinationUpdateDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.firehose.serde

import aws.sdk.kotlin.services.firehose.model.IcebergDestinationUpdate
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 serializeIcebergDestinationUpdateDocument(serializer: Serializer, input: IcebergDestinationUpdate) {
    val BUFFERINGHINTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BufferingHints"))
    val CATALOGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CatalogConfiguration"))
    val CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CloudWatchLoggingOptions"))
    val DESTINATIONTABLECONFIGURATIONLIST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("DestinationTableConfigurationList"))
    val PROCESSINGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ProcessingConfiguration"))
    val RETRYOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("RetryOptions"))
    val ROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RoleARN"))
    val S3BACKUPMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("S3BackupMode"))
    val S3CONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3Configuration"))
    val SCHEMAEVOLUTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SchemaEvolutionConfiguration"))
    val TABLECREATIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("TableCreationConfiguration"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(BUFFERINGHINTS_DESCRIPTOR)
        field(CATALOGCONFIGURATION_DESCRIPTOR)
        field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR)
        field(DESTINATIONTABLECONFIGURATIONLIST_DESCRIPTOR)
        field(PROCESSINGCONFIGURATION_DESCRIPTOR)
        field(RETRYOPTIONS_DESCRIPTOR)
        field(ROLEARN_DESCRIPTOR)
        field(S3BACKUPMODE_DESCRIPTOR)
        field(S3CONFIGURATION_DESCRIPTOR)
        field(SCHEMAEVOLUTIONCONFIGURATION_DESCRIPTOR)
        field(TABLECREATIONCONFIGURATION_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        if (input.destinationTableConfigurationList != null) {
            listField(DESTINATIONTABLECONFIGURATIONLIST_DESCRIPTOR) {
                for (el0 in input.destinationTableConfigurationList) {
                    serializeSdkSerializable(asSdkSerializable(el0, ::serializeDestinationTableConfigurationDocument))
                }
            }
        }
        input.schemaEvolutionConfiguration?.let { field(SCHEMAEVOLUTIONCONFIGURATION_DESCRIPTOR, it, ::serializeSchemaEvolutionConfigurationDocument) }
        input.tableCreationConfiguration?.let { field(TABLECREATIONCONFIGURATION_DESCRIPTOR, it, ::serializeTableCreationConfigurationDocument) }
        input.bufferingHints?.let { field(BUFFERINGHINTS_DESCRIPTOR, it, ::serializeBufferingHintsDocument) }
        input.cloudWatchLoggingOptions?.let { field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR, it, ::serializeCloudWatchLoggingOptionsDocument) }
        input.processingConfiguration?.let { field(PROCESSINGCONFIGURATION_DESCRIPTOR, it, ::serializeProcessingConfigurationDocument) }
        input.s3BackupMode?.let { field(S3BACKUPMODE_DESCRIPTOR, it.value) }
        input.retryOptions?.let { field(RETRYOPTIONS_DESCRIPTOR, it, ::serializeRetryOptionsDocument) }
        input.roleArn?.let { field(ROLEARN_DESCRIPTOR, it) }
        input.catalogConfiguration?.let { field(CATALOGCONFIGURATION_DESCRIPTOR, it, ::serializeCatalogConfigurationDocument) }
        input.s3Configuration?.let { field(S3CONFIGURATION_DESCRIPTOR, it, ::serializeS3DestinationConfigurationDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy