commonMain.aws.sdk.kotlin.services.glue.serde.EvaluateDataQualityDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.serde
import aws.sdk.kotlin.services.glue.model.EvaluateDataQuality
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 serializeEvaluateDataQualityDocument(serializer: Serializer, input: EvaluateDataQuality) {
val INPUTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("Inputs"))
val NAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Name"))
val OUTPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Output"))
val PUBLISHINGOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("PublishingOptions"))
val RULESET_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Ruleset"))
val STOPJOBONFAILUREOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("StopJobOnFailureOptions"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(INPUTS_DESCRIPTOR)
field(NAME_DESCRIPTOR)
field(OUTPUT_DESCRIPTOR)
field(PUBLISHINGOPTIONS_DESCRIPTOR)
field(RULESET_DESCRIPTOR)
field(STOPJOBONFAILUREOPTIONS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(NAME_DESCRIPTOR, input.name)
listField(INPUTS_DESCRIPTOR) {
for (el0 in input.inputs) {
serializeString(el0)
}
}
field(RULESET_DESCRIPTOR, input.ruleset)
input.output?.let { field(OUTPUT_DESCRIPTOR, it.value) }
input.publishingOptions?.let { field(PUBLISHINGOPTIONS_DESCRIPTOR, it, ::serializeDqResultsPublishingOptionsDocument) }
input.stopJobOnFailureOptions?.let { field(STOPJOBONFAILUREOPTIONS_DESCRIPTOR, it, ::serializeDqStopJobOnFailureOptionsDocument) }
}
}