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

commonMain.aws.sdk.kotlin.services.configservice.serde.DeliveryChannelDocumentSerializer.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.configservice.serde

import aws.sdk.kotlin.services.configservice.model.DeliveryChannel
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 serializeDeliveryChannelDocument(serializer: Serializer, input: DeliveryChannel) {
    val CONFIGSNAPSHOTDELIVERYPROPERTIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("configSnapshotDeliveryProperties"))
    val NAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("name"))
    val S3BUCKETNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("s3BucketName"))
    val S3KEYPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("s3KeyPrefix"))
    val S3KMSKEYARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("s3KmsKeyArn"))
    val SNSTOPICARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("snsTopicARN"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(CONFIGSNAPSHOTDELIVERYPROPERTIES_DESCRIPTOR)
        field(NAME_DESCRIPTOR)
        field(S3BUCKETNAME_DESCRIPTOR)
        field(S3KEYPREFIX_DESCRIPTOR)
        field(S3KMSKEYARN_DESCRIPTOR)
        field(SNSTOPICARN_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.name?.let { field(NAME_DESCRIPTOR, it) }
        input.s3BucketName?.let { field(S3BUCKETNAME_DESCRIPTOR, it) }
        input.s3KeyPrefix?.let { field(S3KEYPREFIX_DESCRIPTOR, it) }
        input.s3KmsKeyArn?.let { field(S3KMSKEYARN_DESCRIPTOR, it) }
        input.snsTopicArn?.let { field(SNSTOPICARN_DESCRIPTOR, it) }
        input.configSnapshotDeliveryProperties?.let { field(CONFIGSNAPSHOTDELIVERYPROPERTIES_DESCRIPTOR, it, ::serializeConfigSnapshotDeliveryPropertiesDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy