commonMain.aws.sdk.kotlin.services.athena.serde.WorkGroupConfigurationUpdatesDocumentSerializer.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.WorkGroupConfigurationUpdates
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 serializeWorkGroupConfigurationUpdatesDocument(serializer: Serializer, input: WorkGroupConfigurationUpdates) {
val ADDITIONALCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AdditionalConfiguration"))
val BYTESSCANNEDCUTOFFPERQUERY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("BytesScannedCutoffPerQuery"))
val CUSTOMERCONTENTENCRYPTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CustomerContentEncryptionConfiguration"))
val ENABLEMINIMUMENCRYPTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EnableMinimumEncryptionConfiguration"))
val ENFORCEWORKGROUPCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EnforceWorkGroupConfiguration"))
val ENGINEVERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("EngineVersion"))
val EXECUTIONROLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ExecutionRole"))
val PUBLISHCLOUDWATCHMETRICSENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("PublishCloudWatchMetricsEnabled"))
val QUERYRESULTSS3ACCESSGRANTSCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("QueryResultsS3AccessGrantsConfiguration"))
val REMOVEBYTESSCANNEDCUTOFFPERQUERY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RemoveBytesScannedCutoffPerQuery"))
val REMOVECUSTOMERCONTENTENCRYPTIONCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RemoveCustomerContentEncryptionConfiguration"))
val REQUESTERPAYSENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RequesterPaysEnabled"))
val RESULTCONFIGURATIONUPDATES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ResultConfigurationUpdates"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ADDITIONALCONFIGURATION_DESCRIPTOR)
field(BYTESSCANNEDCUTOFFPERQUERY_DESCRIPTOR)
field(CUSTOMERCONTENTENCRYPTIONCONFIGURATION_DESCRIPTOR)
field(ENABLEMINIMUMENCRYPTIONCONFIGURATION_DESCRIPTOR)
field(ENFORCEWORKGROUPCONFIGURATION_DESCRIPTOR)
field(ENGINEVERSION_DESCRIPTOR)
field(EXECUTIONROLE_DESCRIPTOR)
field(PUBLISHCLOUDWATCHMETRICSENABLED_DESCRIPTOR)
field(QUERYRESULTSS3ACCESSGRANTSCONFIGURATION_DESCRIPTOR)
field(REMOVEBYTESSCANNEDCUTOFFPERQUERY_DESCRIPTOR)
field(REMOVECUSTOMERCONTENTENCRYPTIONCONFIGURATION_DESCRIPTOR)
field(REQUESTERPAYSENABLED_DESCRIPTOR)
field(RESULTCONFIGURATIONUPDATES_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.enforceWorkGroupConfiguration?.let { field(ENFORCEWORKGROUPCONFIGURATION_DESCRIPTOR, it) }
input.resultConfigurationUpdates?.let { field(RESULTCONFIGURATIONUPDATES_DESCRIPTOR, it, ::serializeResultConfigurationUpdatesDocument) }
input.publishCloudWatchMetricsEnabled?.let { field(PUBLISHCLOUDWATCHMETRICSENABLED_DESCRIPTOR, it) }
input.bytesScannedCutoffPerQuery?.let { field(BYTESSCANNEDCUTOFFPERQUERY_DESCRIPTOR, it) }
input.removeBytesScannedCutoffPerQuery?.let { field(REMOVEBYTESSCANNEDCUTOFFPERQUERY_DESCRIPTOR, it) }
input.requesterPaysEnabled?.let { field(REQUESTERPAYSENABLED_DESCRIPTOR, it) }
input.engineVersion?.let { field(ENGINEVERSION_DESCRIPTOR, it, ::serializeEngineVersionDocument) }
input.removeCustomerContentEncryptionConfiguration?.let { field(REMOVECUSTOMERCONTENTENCRYPTIONCONFIGURATION_DESCRIPTOR, it) }
input.additionalConfiguration?.let { field(ADDITIONALCONFIGURATION_DESCRIPTOR, it) }
input.executionRole?.let { field(EXECUTIONROLE_DESCRIPTOR, it) }
input.customerContentEncryptionConfiguration?.let { field(CUSTOMERCONTENTENCRYPTIONCONFIGURATION_DESCRIPTOR, it, ::serializeCustomerContentEncryptionConfigurationDocument) }
input.enableMinimumEncryptionConfiguration?.let { field(ENABLEMINIMUMENCRYPTIONCONFIGURATION_DESCRIPTOR, it) }
input.queryResultsS3AccessGrantsConfiguration?.let { field(QUERYRESULTSS3ACCESSGRANTSCONFIGURATION_DESCRIPTOR, it, ::serializeQueryResultsS3AccessGrantsConfigurationDocument) }
}
}