commonMain.aws.sdk.kotlin.services.kinesisanalytics.serde.InputUpdateDocumentSerializer.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.InputUpdate
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 serializeInputUpdateDocument(serializer: Serializer, input: InputUpdate) {
val INPUTID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("InputId"))
val INPUTPARALLELISMUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InputParallelismUpdate"))
val INPUTPROCESSINGCONFIGURATIONUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InputProcessingConfigurationUpdate"))
val INPUTSCHEMAUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InputSchemaUpdate"))
val KINESISFIREHOSEINPUTUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("KinesisFirehoseInputUpdate"))
val KINESISSTREAMSINPUTUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("KinesisStreamsInputUpdate"))
val NAMEPREFIXUPDATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("NamePrefixUpdate"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(INPUTID_DESCRIPTOR)
field(INPUTPARALLELISMUPDATE_DESCRIPTOR)
field(INPUTPROCESSINGCONFIGURATIONUPDATE_DESCRIPTOR)
field(INPUTSCHEMAUPDATE_DESCRIPTOR)
field(KINESISFIREHOSEINPUTUPDATE_DESCRIPTOR)
field(KINESISSTREAMSINPUTUPDATE_DESCRIPTOR)
field(NAMEPREFIXUPDATE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(INPUTID_DESCRIPTOR, input.inputId)
input.namePrefixUpdate?.let { field(NAMEPREFIXUPDATE_DESCRIPTOR, it) }
input.inputProcessingConfigurationUpdate?.let { field(INPUTPROCESSINGCONFIGURATIONUPDATE_DESCRIPTOR, it, ::serializeInputProcessingConfigurationUpdateDocument) }
input.kinesisStreamsInputUpdate?.let { field(KINESISSTREAMSINPUTUPDATE_DESCRIPTOR, it, ::serializeKinesisStreamsInputUpdateDocument) }
input.kinesisFirehoseInputUpdate?.let { field(KINESISFIREHOSEINPUTUPDATE_DESCRIPTOR, it, ::serializeKinesisFirehoseInputUpdateDocument) }
input.inputSchemaUpdate?.let { field(INPUTSCHEMAUPDATE_DESCRIPTOR, it, ::serializeInputSchemaUpdateDocument) }
input.inputParallelismUpdate?.let { field(INPUTPARALLELISMUPDATE_DESCRIPTOR, it, ::serializeInputParallelismUpdateDocument) }
}
}