commonMain.aws.sdk.kotlin.services.athena.serde.ResultConfigurationUpdatesDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-jvm Show documentation
Show all versions of athena-jvm Show documentation
The AWS SDK for Kotlin client for Athena
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.athena.serde
import aws.sdk.kotlin.services.athena.model.ResultConfigurationUpdates
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 serializeResultConfigurationUpdatesDocument(serializer: Serializer, input: ResultConfigurationUpdates) {
val ACLCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AclConfiguration"))
val ENCRYPTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("EncryptionConfiguration"))
val EXPECTEDBUCKETOWNER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ExpectedBucketOwner"))
val OUTPUTLOCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("OutputLocation"))
val REMOVEACLCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RemoveAclConfiguration"))
val REMOVEENCRYPTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RemoveEncryptionConfiguration"))
val REMOVEEXPECTEDBUCKETOWNER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RemoveExpectedBucketOwner"))
val REMOVEOUTPUTLOCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RemoveOutputLocation"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ACLCONFIGURATION_DESCRIPTOR)
field(ENCRYPTIONCONFIGURATION_DESCRIPTOR)
field(EXPECTEDBUCKETOWNER_DESCRIPTOR)
field(OUTPUTLOCATION_DESCRIPTOR)
field(REMOVEACLCONFIGURATION_DESCRIPTOR)
field(REMOVEENCRYPTIONCONFIGURATION_DESCRIPTOR)
field(REMOVEEXPECTEDBUCKETOWNER_DESCRIPTOR)
field(REMOVEOUTPUTLOCATION_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.outputLocation?.let { field(OUTPUTLOCATION_DESCRIPTOR, it) }
input.removeOutputLocation?.let { field(REMOVEOUTPUTLOCATION_DESCRIPTOR, it) }
input.encryptionConfiguration?.let { field(ENCRYPTIONCONFIGURATION_DESCRIPTOR, it, ::serializeEncryptionConfigurationDocument) }
input.removeEncryptionConfiguration?.let { field(REMOVEENCRYPTIONCONFIGURATION_DESCRIPTOR, it) }
input.expectedBucketOwner?.let { field(EXPECTEDBUCKETOWNER_DESCRIPTOR, it) }
input.removeExpectedBucketOwner?.let { field(REMOVEEXPECTEDBUCKETOWNER_DESCRIPTOR, it) }
input.aclConfiguration?.let { field(ACLCONFIGURATION_DESCRIPTOR, it, ::serializeAclConfigurationDocument) }
input.removeAclConfiguration?.let { field(REMOVEACLCONFIGURATION_DESCRIPTOR, it) }
}
}