commonMain.aws.sdk.kotlin.services.kinesisanalytics.serde.InputDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisanalytics-jvm Show documentation
Show all versions of kinesisanalytics-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Analytics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisanalytics.serde
import aws.sdk.kotlin.services.kinesisanalytics.model.Input
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 serializeInputDocument(serializer: Serializer, input: Input) {
val INPUTPARALLELISM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InputParallelism"))
val INPUTPROCESSINGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InputProcessingConfiguration"))
val INPUTSCHEMA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InputSchema"))
val KINESISFIREHOSEINPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("KinesisFirehoseInput"))
val KINESISSTREAMSINPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("KinesisStreamsInput"))
val NAMEPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("NamePrefix"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(INPUTPARALLELISM_DESCRIPTOR)
field(INPUTPROCESSINGCONFIGURATION_DESCRIPTOR)
field(INPUTSCHEMA_DESCRIPTOR)
field(KINESISFIREHOSEINPUT_DESCRIPTOR)
field(KINESISSTREAMSINPUT_DESCRIPTOR)
field(NAMEPREFIX_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(NAMEPREFIX_DESCRIPTOR, input.namePrefix)
input.inputProcessingConfiguration?.let { field(INPUTPROCESSINGCONFIGURATION_DESCRIPTOR, it, ::serializeInputProcessingConfigurationDocument) }
input.kinesisStreamsInput?.let { field(KINESISSTREAMSINPUT_DESCRIPTOR, it, ::serializeKinesisStreamsInputDocument) }
input.kinesisFirehoseInput?.let { field(KINESISFIREHOSEINPUT_DESCRIPTOR, it, ::serializeKinesisFirehoseInputDocument) }
input.inputParallelism?.let { field(INPUTPARALLELISM_DESCRIPTOR, it, ::serializeInputParallelismDocument) }
input.inputSchema?.let { field(INPUTSCHEMA_DESCRIPTOR, it, ::serializeSourceSchemaDocument) }
}
}