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

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

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.sdk.kotlin.services.glue.model.KinesisStreamingSourceOptions
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 serializeKinesisStreamingSourceOptionsDocument(serializer: Serializer, input: KinesisStreamingSourceOptions) {
    val ADDIDLETIMEBETWEENREADS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AddIdleTimeBetweenReads"))
    val ADDRECORDTIMESTAMP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("AddRecordTimestamp"))
    val AVOIDEMPTYBATCHES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("AvoidEmptyBatches"))
    val CLASSIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Classification"))
    val DELIMITER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Delimiter"))
    val DESCRIBESHARDINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("DescribeShardInterval"))
    val EMITCONSUMERLAGMETRICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("EmitConsumerLagMetrics"))
    val ENDPOINTURL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("EndpointUrl"))
    val IDLETIMEBETWEENREADSINMS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("IdleTimeBetweenReadsInMs"))
    val MAXFETCHRECORDSPERSHARD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("MaxFetchRecordsPerShard"))
    val MAXFETCHTIMEINMS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("MaxFetchTimeInMs"))
    val MAXRECORDPERREAD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("MaxRecordPerRead"))
    val MAXRETRYINTERVALMS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("MaxRetryIntervalMs"))
    val NUMRETRIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("NumRetries"))
    val RETRYINTERVALMS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("RetryIntervalMs"))
    val ROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RoleArn"))
    val ROLESESSIONNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RoleSessionName"))
    val STARTINGPOSITION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("StartingPosition"))
    val STARTINGTIMESTAMP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("StartingTimestamp"))
    val STREAMARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("StreamArn"))
    val STREAMNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("StreamName"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ADDIDLETIMEBETWEENREADS_DESCRIPTOR)
        field(ADDRECORDTIMESTAMP_DESCRIPTOR)
        field(AVOIDEMPTYBATCHES_DESCRIPTOR)
        field(CLASSIFICATION_DESCRIPTOR)
        field(DELIMITER_DESCRIPTOR)
        field(DESCRIBESHARDINTERVAL_DESCRIPTOR)
        field(EMITCONSUMERLAGMETRICS_DESCRIPTOR)
        field(ENDPOINTURL_DESCRIPTOR)
        field(IDLETIMEBETWEENREADSINMS_DESCRIPTOR)
        field(MAXFETCHRECORDSPERSHARD_DESCRIPTOR)
        field(MAXFETCHTIMEINMS_DESCRIPTOR)
        field(MAXRECORDPERREAD_DESCRIPTOR)
        field(MAXRETRYINTERVALMS_DESCRIPTOR)
        field(NUMRETRIES_DESCRIPTOR)
        field(RETRYINTERVALMS_DESCRIPTOR)
        field(ROLEARN_DESCRIPTOR)
        field(ROLESESSIONNAME_DESCRIPTOR)
        field(STARTINGPOSITION_DESCRIPTOR)
        field(STARTINGTIMESTAMP_DESCRIPTOR)
        field(STREAMARN_DESCRIPTOR)
        field(STREAMNAME_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.endpointUrl?.let { field(ENDPOINTURL_DESCRIPTOR, it) }
        input.streamName?.let { field(STREAMNAME_DESCRIPTOR, it) }
        input.classification?.let { field(CLASSIFICATION_DESCRIPTOR, it) }
        input.delimiter?.let { field(DELIMITER_DESCRIPTOR, it) }
        input.startingPosition?.let { field(STARTINGPOSITION_DESCRIPTOR, it.value) }
        input.maxFetchTimeInMs?.let { field(MAXFETCHTIMEINMS_DESCRIPTOR, it) }
        input.maxFetchRecordsPerShard?.let { field(MAXFETCHRECORDSPERSHARD_DESCRIPTOR, it) }
        input.maxRecordPerRead?.let { field(MAXRECORDPERREAD_DESCRIPTOR, it) }
        input.addIdleTimeBetweenReads?.let { field(ADDIDLETIMEBETWEENREADS_DESCRIPTOR, it) }
        input.idleTimeBetweenReadsInMs?.let { field(IDLETIMEBETWEENREADSINMS_DESCRIPTOR, it) }
        input.describeShardInterval?.let { field(DESCRIBESHARDINTERVAL_DESCRIPTOR, it) }
        input.numRetries?.let { field(NUMRETRIES_DESCRIPTOR, it) }
        input.retryIntervalMs?.let { field(RETRYINTERVALMS_DESCRIPTOR, it) }
        input.maxRetryIntervalMs?.let { field(MAXRETRYINTERVALMS_DESCRIPTOR, it) }
        input.avoidEmptyBatches?.let { field(AVOIDEMPTYBATCHES_DESCRIPTOR, it) }
        input.streamArn?.let { field(STREAMARN_DESCRIPTOR, it) }
        input.roleArn?.let { field(ROLEARN_DESCRIPTOR, it) }
        input.roleSessionName?.let { field(ROLESESSIONNAME_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