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

commonMain.aws.sdk.kotlin.services.glue.serde.S3TargetDocumentSerializer.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.S3Target
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 serializeS3TargetDocument(serializer: Serializer, input: S3Target) {
    val CONNECTIONNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ConnectionName"))
    val DLQEVENTQUEUEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("DlqEventQueueArn"))
    val EVENTQUEUEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("EventQueueArn"))
    val EXCLUSIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Exclusions"))
    val PATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Path"))
    val SAMPLESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("SampleSize"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(CONNECTIONNAME_DESCRIPTOR)
        field(DLQEVENTQUEUEARN_DESCRIPTOR)
        field(EVENTQUEUEARN_DESCRIPTOR)
        field(EXCLUSIONS_DESCRIPTOR)
        field(PATH_DESCRIPTOR)
        field(SAMPLESIZE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.path?.let { field(PATH_DESCRIPTOR, it) }
        if (input.exclusions != null) {
            listField(EXCLUSIONS_DESCRIPTOR) {
                for (el0 in input.exclusions) {
                    serializeString(el0)
                }
            }
        }
        input.connectionName?.let { field(CONNECTIONNAME_DESCRIPTOR, it) }
        input.sampleSize?.let { field(SAMPLESIZE_DESCRIPTOR, it) }
        input.eventQueueArn?.let { field(EVENTQUEUEARN_DESCRIPTOR, it) }
        input.dlqEventQueueArn?.let { field(DLQEVENTQUEUEARN_DESCRIPTOR, it) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy