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

commonMain.aws.sdk.kotlin.services.transfer.serde.As2ConnectorConfigDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.transfer.serde

import aws.sdk.kotlin.services.transfer.model.As2ConnectorConfig
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 serializeAs2ConnectorConfigDocument(serializer: Serializer, input: As2ConnectorConfig) {
    val BASICAUTHSECRETID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("BasicAuthSecretId"))
    val COMPRESSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Compression"))
    val ENCRYPTIONALGORITHM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("EncryptionAlgorithm"))
    val LOCALPROFILEID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LocalProfileId"))
    val MDNRESPONSE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("MdnResponse"))
    val MDNSIGNINGALGORITHM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("MdnSigningAlgorithm"))
    val MESSAGESUBJECT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("MessageSubject"))
    val PARTNERPROFILEID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("PartnerProfileId"))
    val SIGNINGALGORITHM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("SigningAlgorithm"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(BASICAUTHSECRETID_DESCRIPTOR)
        field(COMPRESSION_DESCRIPTOR)
        field(ENCRYPTIONALGORITHM_DESCRIPTOR)
        field(LOCALPROFILEID_DESCRIPTOR)
        field(MDNRESPONSE_DESCRIPTOR)
        field(MDNSIGNINGALGORITHM_DESCRIPTOR)
        field(MESSAGESUBJECT_DESCRIPTOR)
        field(PARTNERPROFILEID_DESCRIPTOR)
        field(SIGNINGALGORITHM_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.localProfileId?.let { field(LOCALPROFILEID_DESCRIPTOR, it) }
        input.partnerProfileId?.let { field(PARTNERPROFILEID_DESCRIPTOR, it) }
        input.messageSubject?.let { field(MESSAGESUBJECT_DESCRIPTOR, it) }
        input.compression?.let { field(COMPRESSION_DESCRIPTOR, it.value) }
        input.encryptionAlgorithm?.let { field(ENCRYPTIONALGORITHM_DESCRIPTOR, it.value) }
        input.signingAlgorithm?.let { field(SIGNINGALGORITHM_DESCRIPTOR, it.value) }
        input.mdnSigningAlgorithm?.let { field(MDNSIGNINGALGORITHM_DESCRIPTOR, it.value) }
        input.mdnResponse?.let { field(MDNRESPONSE_DESCRIPTOR, it.value) }
        input.basicAuthSecretId?.let { field(BASICAUTHSECRETID_DESCRIPTOR, it) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy