All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.glue.serde.KafkaStreamingSourceOptionsDocumentSerializer.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.glue.serde

import aws.sdk.kotlin.services.glue.model.KafkaStreamingSourceOptions
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
import aws.smithy.kotlin.runtime.time.TimestampFormat

internal fun serializeKafkaStreamingSourceOptionsDocument(serializer: Serializer, input: KafkaStreamingSourceOptions) {
    val ADDRECORDTIMESTAMP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AddRecordTimestamp"))
    val ASSIGN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Assign"))
    val BOOTSTRAPSERVERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("BootstrapServers"))
    val CLASSIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Classification"))
    val CONNECTIONNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ConnectionName"))
    val DELIMITER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Delimiter"))
    val EMITCONSUMERLAGMETRICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("EmitConsumerLagMetrics"))
    val ENDINGOFFSETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("EndingOffsets"))
    val INCLUDEHEADERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IncludeHeaders"))
    val MAXOFFSETSPERTRIGGER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("MaxOffsetsPerTrigger"))
    val MINPARTITIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MinPartitions"))
    val NUMRETRIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("NumRetries"))
    val POLLTIMEOUTMS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("PollTimeoutMs"))
    val RETRYINTERVALMS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("RetryIntervalMs"))
    val SECURITYPROTOCOL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecurityProtocol"))
    val STARTINGOFFSETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("StartingOffsets"))
    val STARTINGTIMESTAMP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("StartingTimestamp"))
    val SUBSCRIBEPATTERN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SubscribePattern"))
    val TOPICNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TopicName"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ADDRECORDTIMESTAMP_DESCRIPTOR)
        field(ASSIGN_DESCRIPTOR)
        field(BOOTSTRAPSERVERS_DESCRIPTOR)
        field(CLASSIFICATION_DESCRIPTOR)
        field(CONNECTIONNAME_DESCRIPTOR)
        field(DELIMITER_DESCRIPTOR)
        field(EMITCONSUMERLAGMETRICS_DESCRIPTOR)
        field(ENDINGOFFSETS_DESCRIPTOR)
        field(INCLUDEHEADERS_DESCRIPTOR)
        field(MAXOFFSETSPERTRIGGER_DESCRIPTOR)
        field(MINPARTITIONS_DESCRIPTOR)
        field(NUMRETRIES_DESCRIPTOR)
        field(POLLTIMEOUTMS_DESCRIPTOR)
        field(RETRYINTERVALMS_DESCRIPTOR)
        field(SECURITYPROTOCOL_DESCRIPTOR)
        field(STARTINGOFFSETS_DESCRIPTOR)
        field(STARTINGTIMESTAMP_DESCRIPTOR)
        field(SUBSCRIBEPATTERN_DESCRIPTOR)
        field(TOPICNAME_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.bootstrapServers?.let { field(BOOTSTRAPSERVERS_DESCRIPTOR, it) }
        input.securityProtocol?.let { field(SECURITYPROTOCOL_DESCRIPTOR, it) }
        input.connectionName?.let { field(CONNECTIONNAME_DESCRIPTOR, it) }
        input.topicName?.let { field(TOPICNAME_DESCRIPTOR, it) }
        input.assign?.let { field(ASSIGN_DESCRIPTOR, it) }
        input.subscribePattern?.let { field(SUBSCRIBEPATTERN_DESCRIPTOR, it) }
        input.classification?.let { field(CLASSIFICATION_DESCRIPTOR, it) }
        input.delimiter?.let { field(DELIMITER_DESCRIPTOR, it) }
        input.startingOffsets?.let { field(STARTINGOFFSETS_DESCRIPTOR, it) }
        input.endingOffsets?.let { field(ENDINGOFFSETS_DESCRIPTOR, it) }
        input.pollTimeoutMs?.let { field(POLLTIMEOUTMS_DESCRIPTOR, it) }
        input.numRetries?.let { field(NUMRETRIES_DESCRIPTOR, it) }
        input.retryIntervalMs?.let { field(RETRYINTERVALMS_DESCRIPTOR, it) }
        input.maxOffsetsPerTrigger?.let { field(MAXOFFSETSPERTRIGGER_DESCRIPTOR, it) }
        input.minPartitions?.let { field(MINPARTITIONS_DESCRIPTOR, it) }
        input.includeHeaders?.let { field(INCLUDEHEADERS_DESCRIPTOR, it) }
        input.addRecordTimestamp?.let { field(ADDRECORDTIMESTAMP_DESCRIPTOR, it) }
        input.emitConsumerLagMetrics?.let { field(EMITCONSUMERLAGMETRICS_DESCRIPTOR, it) }
        input.startingTimestamp?.let { field(STARTINGTIMESTAMP_DESCRIPTOR, it, TimestampFormat.ISO_8601) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy