commonMain.aws.sdk.kotlin.services.appflow.serde.DestinationConnectorPropertiesDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.serde
import aws.sdk.kotlin.services.appflow.model.DestinationConnectorProperties
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 serializeDestinationConnectorPropertiesDocument(serializer: Serializer, input: DestinationConnectorProperties) {
val CUSTOMCONNECTOR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CustomConnector"))
val CUSTOMERPROFILES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CustomerProfiles"))
val EVENTBRIDGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("EventBridge"))
val HONEYCODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Honeycode"))
val LOOKOUTMETRICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("LookoutMetrics"))
val MARKETO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Marketo"))
val REDSHIFT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Redshift"))
val S3_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3"))
val SAPODATA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SAPOData"))
val SALESFORCE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Salesforce"))
val SNOWFLAKE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Snowflake"))
val UPSOLVER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Upsolver"))
val ZENDESK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Zendesk"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CUSTOMCONNECTOR_DESCRIPTOR)
field(CUSTOMERPROFILES_DESCRIPTOR)
field(EVENTBRIDGE_DESCRIPTOR)
field(HONEYCODE_DESCRIPTOR)
field(LOOKOUTMETRICS_DESCRIPTOR)
field(MARKETO_DESCRIPTOR)
field(REDSHIFT_DESCRIPTOR)
field(S3_DESCRIPTOR)
field(SAPODATA_DESCRIPTOR)
field(SALESFORCE_DESCRIPTOR)
field(SNOWFLAKE_DESCRIPTOR)
field(UPSOLVER_DESCRIPTOR)
field(ZENDESK_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.redshift?.let { field(REDSHIFT_DESCRIPTOR, it, ::serializeRedshiftDestinationPropertiesDocument) }
input.s3?.let { field(S3_DESCRIPTOR, it, ::serializeS3DestinationPropertiesDocument) }
input.salesforce?.let { field(SALESFORCE_DESCRIPTOR, it, ::serializeSalesforceDestinationPropertiesDocument) }
input.snowflake?.let { field(SNOWFLAKE_DESCRIPTOR, it, ::serializeSnowflakeDestinationPropertiesDocument) }
input.eventBridge?.let { field(EVENTBRIDGE_DESCRIPTOR, it, ::serializeEventBridgeDestinationPropertiesDocument) }
input.lookoutMetrics?.let { field(LOOKOUTMETRICS_DESCRIPTOR, it, ::serializeLookoutMetricsDestinationPropertiesDocument) }
input.upsolver?.let { field(UPSOLVER_DESCRIPTOR, it, ::serializeUpsolverDestinationPropertiesDocument) }
input.honeycode?.let { field(HONEYCODE_DESCRIPTOR, it, ::serializeHoneycodeDestinationPropertiesDocument) }
input.customerProfiles?.let { field(CUSTOMERPROFILES_DESCRIPTOR, it, ::serializeCustomerProfilesDestinationPropertiesDocument) }
input.zendesk?.let { field(ZENDESK_DESCRIPTOR, it, ::serializeZendeskDestinationPropertiesDocument) }
input.marketo?.let { field(MARKETO_DESCRIPTOR, it, ::serializeMarketoDestinationPropertiesDocument) }
input.customConnector?.let { field(CUSTOMCONNECTOR_DESCRIPTOR, it, ::serializeCustomConnectorDestinationPropertiesDocument) }
input.sapoData?.let { field(SAPODATA_DESCRIPTOR, it, ::serializeSapoDataDestinationPropertiesDocument) }
}
}