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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.KafkaSettingsDocumentSerializer.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.KafkaSettings
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 serializeKafkaSettingsDocument(serializer: Serializer, input: KafkaSettings) {
    val BROKER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Broker"))
    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 MESSAGEMAXBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MessageMaxBytes"))
    val NOHEXPREFIX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("NoHexPrefix"))
    val PARTITIONINCLUDESCHEMATABLE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("PartitionIncludeSchemaTable"))
    val SASLMECHANISM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("SaslMechanism"))
    val SASLPASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SaslPassword"))
    val SASLUSERNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SaslUsername"))
    val SECURITYPROTOCOL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("SecurityProtocol"))
    val SSLCACERTIFICATEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SslCaCertificateArn"))
    val SSLCLIENTCERTIFICATEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SslClientCertificateArn"))
    val SSLCLIENTKEYARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SslClientKeyArn"))
    val SSLCLIENTKEYPASSWORD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SslClientKeyPassword"))
    val SSLENDPOINTIDENTIFICATIONALGORITHM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("SslEndpointIdentificationAlgorithm"))
    val TOPIC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Topic"))
    val USELARGEINTEGERVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("UseLargeIntegerValue"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(BROKER_DESCRIPTOR)
        field(INCLUDECONTROLDETAILS_DESCRIPTOR)
        field(INCLUDENULLANDEMPTY_DESCRIPTOR)
        field(INCLUDEPARTITIONVALUE_DESCRIPTOR)
        field(INCLUDETABLEALTEROPERATIONS_DESCRIPTOR)
        field(INCLUDETRANSACTIONDETAILS_DESCRIPTOR)
        field(MESSAGEFORMAT_DESCRIPTOR)
        field(MESSAGEMAXBYTES_DESCRIPTOR)
        field(NOHEXPREFIX_DESCRIPTOR)
        field(PARTITIONINCLUDESCHEMATABLE_DESCRIPTOR)
        field(SASLMECHANISM_DESCRIPTOR)
        field(SASLPASSWORD_DESCRIPTOR)
        field(SASLUSERNAME_DESCRIPTOR)
        field(SECURITYPROTOCOL_DESCRIPTOR)
        field(SSLCACERTIFICATEARN_DESCRIPTOR)
        field(SSLCLIENTCERTIFICATEARN_DESCRIPTOR)
        field(SSLCLIENTKEYARN_DESCRIPTOR)
        field(SSLCLIENTKEYPASSWORD_DESCRIPTOR)
        field(SSLENDPOINTIDENTIFICATIONALGORITHM_DESCRIPTOR)
        field(TOPIC_DESCRIPTOR)
        field(USELARGEINTEGERVALUE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.broker?.let { field(BROKER_DESCRIPTOR, it) }
        input.topic?.let { field(TOPIC_DESCRIPTOR, it) }
        input.messageFormat?.let { field(MESSAGEFORMAT_DESCRIPTOR, it.value) }
        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.messageMaxBytes?.let { field(MESSAGEMAXBYTES_DESCRIPTOR, it) }
        input.includeNullAndEmpty?.let { field(INCLUDENULLANDEMPTY_DESCRIPTOR, it) }
        input.securityProtocol?.let { field(SECURITYPROTOCOL_DESCRIPTOR, it.value) }
        input.sslClientCertificateArn?.let { field(SSLCLIENTCERTIFICATEARN_DESCRIPTOR, it) }
        input.sslClientKeyArn?.let { field(SSLCLIENTKEYARN_DESCRIPTOR, it) }
        input.sslClientKeyPassword?.let { field(SSLCLIENTKEYPASSWORD_DESCRIPTOR, it) }
        input.sslCaCertificateArn?.let { field(SSLCACERTIFICATEARN_DESCRIPTOR, it) }
        input.saslUsername?.let { field(SASLUSERNAME_DESCRIPTOR, it) }
        input.saslPassword?.let { field(SASLPASSWORD_DESCRIPTOR, it) }
        input.noHexPrefix?.let { field(NOHEXPREFIX_DESCRIPTOR, it) }
        input.saslMechanism?.let { field(SASLMECHANISM_DESCRIPTOR, it.value) }
        input.sslEndpointIdentificationAlgorithm?.let { field(SSLENDPOINTIDENTIFICATIONALGORITHM_DESCRIPTOR, it.value) }
        input.useLargeIntegerValue?.let { field(USELARGEINTEGERVALUE_DESCRIPTOR, it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy