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

commonMain.aws.sdk.kotlin.services.ssm.serde.S3OutputLocationDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.serde

import aws.sdk.kotlin.services.ssm.model.S3OutputLocation
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 serializeS3OutputLocationDocument(serializer: Serializer, input: S3OutputLocation) {
    val OUTPUTS3BUCKETNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("OutputS3BucketName"))
    val OUTPUTS3KEYPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("OutputS3KeyPrefix"))
    val OUTPUTS3REGION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("OutputS3Region"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(OUTPUTS3BUCKETNAME_DESCRIPTOR)
        field(OUTPUTS3KEYPREFIX_DESCRIPTOR)
        field(OUTPUTS3REGION_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.outputS3Region?.let { field(OUTPUTS3REGION_DESCRIPTOR, it) }
        input.outputS3BucketName?.let { field(OUTPUTS3BUCKETNAME_DESCRIPTOR, it) }
        input.outputS3KeyPrefix?.let { field(OUTPUTS3KEYPREFIX_DESCRIPTOR, it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy