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

commonMain.aws.sdk.kotlin.services.firehose.serde.ElasticsearchDestinationUpdateDocumentSerializer.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.ElasticsearchDestinationUpdate
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 serializeElasticsearchDestinationUpdateDocument(serializer: Serializer, input: ElasticsearchDestinationUpdate) {
    val BUFFERINGHINTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BufferingHints"))
    val CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CloudWatchLoggingOptions"))
    val CLUSTERENDPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ClusterEndpoint"))
    val DOCUMENTIDOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DocumentIdOptions"))
    val DOMAINARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DomainARN"))
    val INDEXNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("IndexName"))
    val INDEXROTATIONPERIOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("IndexRotationPeriod"))
    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 S3UPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3Update"))
    val TYPENAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TypeName"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(BUFFERINGHINTS_DESCRIPTOR)
        field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR)
        field(CLUSTERENDPOINT_DESCRIPTOR)
        field(DOCUMENTIDOPTIONS_DESCRIPTOR)
        field(DOMAINARN_DESCRIPTOR)
        field(INDEXNAME_DESCRIPTOR)
        field(INDEXROTATIONPERIOD_DESCRIPTOR)
        field(PROCESSINGCONFIGURATION_DESCRIPTOR)
        field(RETRYOPTIONS_DESCRIPTOR)
        field(ROLEARN_DESCRIPTOR)
        field(S3UPDATE_DESCRIPTOR)
        field(TYPENAME_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.roleArn?.let { field(ROLEARN_DESCRIPTOR, it) }
        input.domainArn?.let { field(DOMAINARN_DESCRIPTOR, it) }
        input.clusterEndpoint?.let { field(CLUSTERENDPOINT_DESCRIPTOR, it) }
        input.indexName?.let { field(INDEXNAME_DESCRIPTOR, it) }
        input.typeName?.let { field(TYPENAME_DESCRIPTOR, it) }
        input.indexRotationPeriod?.let { field(INDEXROTATIONPERIOD_DESCRIPTOR, it.value) }
        input.bufferingHints?.let { field(BUFFERINGHINTS_DESCRIPTOR, it, ::serializeElasticsearchBufferingHintsDocument) }
        input.retryOptions?.let { field(RETRYOPTIONS_DESCRIPTOR, it, ::serializeElasticsearchRetryOptionsDocument) }
        input.s3Update?.let { field(S3UPDATE_DESCRIPTOR, it, ::serializeS3DestinationUpdateDocument) }
        input.processingConfiguration?.let { field(PROCESSINGCONFIGURATION_DESCRIPTOR, it, ::serializeProcessingConfigurationDocument) }
        input.cloudWatchLoggingOptions?.let { field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR, it, ::serializeCloudWatchLoggingOptionsDocument) }
        input.documentIdOptions?.let { field(DOCUMENTIDOPTIONS_DESCRIPTOR, it, ::serializeDocumentIdOptionsDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy