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

commonMain.aws.sdk.kotlin.services.firehose.serde.ExtendedS3DestinationConfigurationDocumentSerializer.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.ExtendedS3DestinationConfiguration
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 serializeExtendedS3DestinationConfigurationDocument(serializer: Serializer, input: ExtendedS3DestinationConfiguration) {
    val BUCKETARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("BucketARN"))
    val BUFFERINGHINTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BufferingHints"))
    val CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CloudWatchLoggingOptions"))
    val COMPRESSIONFORMAT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("CompressionFormat"))
    val CUSTOMTIMEZONE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CustomTimeZone"))
    val DATAFORMATCONVERSIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DataFormatConversionConfiguration"))
    val DYNAMICPARTITIONINGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DynamicPartitioningConfiguration"))
    val ENCRYPTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("EncryptionConfiguration"))
    val ERROROUTPUTPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ErrorOutputPrefix"))
    val FILEEXTENSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("FileExtension"))
    val PREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Prefix"))
    val PROCESSINGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ProcessingConfiguration"))
    val ROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RoleARN"))
    val S3BACKUPCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3BackupConfiguration"))
    val S3BACKUPMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("S3BackupMode"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(BUCKETARN_DESCRIPTOR)
        field(BUFFERINGHINTS_DESCRIPTOR)
        field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR)
        field(COMPRESSIONFORMAT_DESCRIPTOR)
        field(CUSTOMTIMEZONE_DESCRIPTOR)
        field(DATAFORMATCONVERSIONCONFIGURATION_DESCRIPTOR)
        field(DYNAMICPARTITIONINGCONFIGURATION_DESCRIPTOR)
        field(ENCRYPTIONCONFIGURATION_DESCRIPTOR)
        field(ERROROUTPUTPREFIX_DESCRIPTOR)
        field(FILEEXTENSION_DESCRIPTOR)
        field(PREFIX_DESCRIPTOR)
        field(PROCESSINGCONFIGURATION_DESCRIPTOR)
        field(ROLEARN_DESCRIPTOR)
        field(S3BACKUPCONFIGURATION_DESCRIPTOR)
        field(S3BACKUPMODE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        field(ROLEARN_DESCRIPTOR, input.roleArn)
        field(BUCKETARN_DESCRIPTOR, input.bucketArn)
        input.prefix?.let { field(PREFIX_DESCRIPTOR, it) }
        input.errorOutputPrefix?.let { field(ERROROUTPUTPREFIX_DESCRIPTOR, it) }
        input.bufferingHints?.let { field(BUFFERINGHINTS_DESCRIPTOR, it, ::serializeBufferingHintsDocument) }
        input.compressionFormat?.let { field(COMPRESSIONFORMAT_DESCRIPTOR, it.value) }
        input.encryptionConfiguration?.let { field(ENCRYPTIONCONFIGURATION_DESCRIPTOR, it, ::serializeEncryptionConfigurationDocument) }
        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.s3BackupConfiguration?.let { field(S3BACKUPCONFIGURATION_DESCRIPTOR, it, ::serializeS3DestinationConfigurationDocument) }
        input.dataFormatConversionConfiguration?.let { field(DATAFORMATCONVERSIONCONFIGURATION_DESCRIPTOR, it, ::serializeDataFormatConversionConfigurationDocument) }
        input.dynamicPartitioningConfiguration?.let { field(DYNAMICPARTITIONINGCONFIGURATION_DESCRIPTOR, it, ::serializeDynamicPartitioningConfigurationDocument) }
        input.fileExtension?.let { field(FILEEXTENSION_DESCRIPTOR, it) }
        input.customTimeZone?.let { field(CUSTOMTIMEZONE_DESCRIPTOR, it) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy