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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.KinesisSettingsDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.serde

import aws.sdk.kotlin.services.databasemigrationservice.model.KinesisSettings
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 serializeKinesisSettingsDocument(serializer: Serializer, input: KinesisSettings) {
    val INCLUDECONTROLDETAILS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IncludeControlDetails"))
    val INCLUDENULLANDEMPTY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IncludeNullAndEmpty"))
    val INCLUDEPARTITIONVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IncludePartitionValue"))
    val INCLUDETABLEALTEROPERATIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IncludeTableAlterOperations"))
    val INCLUDETRANSACTIONDETAILS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IncludeTransactionDetails"))
    val MESSAGEFORMAT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("MessageFormat"))
    val NOHEXPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("NoHexPrefix"))
    val PARTITIONINCLUDESCHEMATABLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("PartitionIncludeSchemaTable"))
    val SERVICEACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServiceAccessRoleArn"))
    val STREAMARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("StreamArn"))
    val USELARGEINTEGERVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseLargeIntegerValue"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(INCLUDECONTROLDETAILS_DESCRIPTOR)
        field(INCLUDENULLANDEMPTY_DESCRIPTOR)
        field(INCLUDEPARTITIONVALUE_DESCRIPTOR)
        field(INCLUDETABLEALTEROPERATIONS_DESCRIPTOR)
        field(INCLUDETRANSACTIONDETAILS_DESCRIPTOR)
        field(MESSAGEFORMAT_DESCRIPTOR)
        field(NOHEXPREFIX_DESCRIPTOR)
        field(PARTITIONINCLUDESCHEMATABLE_DESCRIPTOR)
        field(SERVICEACCESSROLEARN_DESCRIPTOR)
        field(STREAMARN_DESCRIPTOR)
        field(USELARGEINTEGERVALUE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.streamArn?.let { field(STREAMARN_DESCRIPTOR, it) }
        input.messageFormat?.let { field(MESSAGEFORMAT_DESCRIPTOR, it.value) }
        input.serviceAccessRoleArn?.let { field(SERVICEACCESSROLEARN_DESCRIPTOR, it) }
        input.includeTransactionDetails?.let { field(INCLUDETRANSACTIONDETAILS_DESCRIPTOR, it) }
        input.includePartitionValue?.let { field(INCLUDEPARTITIONVALUE_DESCRIPTOR, it) }
        input.partitionIncludeSchemaTable?.let { field(PARTITIONINCLUDESCHEMATABLE_DESCRIPTOR, it) }
        input.includeTableAlterOperations?.let { field(INCLUDETABLEALTEROPERATIONS_DESCRIPTOR, it) }
        input.includeControlDetails?.let { field(INCLUDECONTROLDETAILS_DESCRIPTOR, it) }
        input.includeNullAndEmpty?.let { field(INCLUDENULLANDEMPTY_DESCRIPTOR, it) }
        input.noHexPrefix?.let { field(NOHEXPREFIX_DESCRIPTOR, it) }
        input.useLargeIntegerValue?.let { field(USELARGEINTEGERVALUE_DESCRIPTOR, it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy