commonMain.aws.sdk.kotlin.services.athena.serde.WorkGroupConfigurationDocumentSerializer.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.WorkGroupConfiguration
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 serializeWorkGroupConfigurationDocument(serializer: Serializer, input: WorkGroupConfiguration) {
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 IDENTITYCENTERCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("IdentityCenterConfiguration"))
val PUBLISHCLOUDWATCHMETRICSENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("PublishCloudWatchMetricsEnabled"))
val QUERYRESULTSS3ACCESSGRANTSCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("QueryResultsS3AccessGrantsConfiguration"))
val REQUESTERPAYSENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("RequesterPaysEnabled"))
val RESULTCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ResultConfiguration"))
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(IDENTITYCENTERCONFIGURATION_DESCRIPTOR)
field(PUBLISHCLOUDWATCHMETRICSENABLED_DESCRIPTOR)
field(QUERYRESULTSS3ACCESSGRANTSCONFIGURATION_DESCRIPTOR)
field(REQUESTERPAYSENABLED_DESCRIPTOR)
field(RESULTCONFIGURATION_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.resultConfiguration?.let { field(RESULTCONFIGURATION_DESCRIPTOR, it, ::serializeResultConfigurationDocument) }
input.enforceWorkGroupConfiguration?.let { field(ENFORCEWORKGROUPCONFIGURATION_DESCRIPTOR, it) }
input.publishCloudWatchMetricsEnabled?.let { field(PUBLISHCLOUDWATCHMETRICSENABLED_DESCRIPTOR, it) }
input.bytesScannedCutoffPerQuery?.let { field(BYTESSCANNEDCUTOFFPERQUERY_DESCRIPTOR, it) }
input.requesterPaysEnabled?.let { field(REQUESTERPAYSENABLED_DESCRIPTOR, it) }
input.engineVersion?.let { field(ENGINEVERSION_DESCRIPTOR, it, ::serializeEngineVersionDocument) }
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.identityCenterConfiguration?.let { field(IDENTITYCENTERCONFIGURATION_DESCRIPTOR, it, ::serializeIdentityCenterConfigurationDocument) }
input.queryResultsS3AccessGrantsConfiguration?.let { field(QUERYRESULTSS3ACCESSGRANTSCONFIGURATION_DESCRIPTOR, it, ::serializeQueryResultsS3AccessGrantsConfigurationDocument) }
}
}