commonMain.aws.sdk.kotlin.services.appflow.serde.DestinationConnectorPropertiesDocumentDeserializer.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.Deserializer
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.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 deserializeDestinationConnectorPropertiesDocument(deserializer: Deserializer): DestinationConnectorProperties {
val builder = DestinationConnectorProperties.Builder()
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)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
CUSTOMCONNECTOR_DESCRIPTOR.index -> builder.customConnector = deserializeCustomConnectorDestinationPropertiesDocument(deserializer)
CUSTOMERPROFILES_DESCRIPTOR.index -> builder.customerProfiles = deserializeCustomerProfilesDestinationPropertiesDocument(deserializer)
EVENTBRIDGE_DESCRIPTOR.index -> builder.eventBridge = deserializeEventBridgeDestinationPropertiesDocument(deserializer)
HONEYCODE_DESCRIPTOR.index -> builder.honeycode = deserializeHoneycodeDestinationPropertiesDocument(deserializer)
LOOKOUTMETRICS_DESCRIPTOR.index -> builder.lookoutMetrics = deserializeLookoutMetricsDestinationPropertiesDocument(deserializer)
MARKETO_DESCRIPTOR.index -> builder.marketo = deserializeMarketoDestinationPropertiesDocument(deserializer)
REDSHIFT_DESCRIPTOR.index -> builder.redshift = deserializeRedshiftDestinationPropertiesDocument(deserializer)
S3_DESCRIPTOR.index -> builder.s3 = deserializeS3DestinationPropertiesDocument(deserializer)
SAPODATA_DESCRIPTOR.index -> builder.sapoData = deserializeSapoDataDestinationPropertiesDocument(deserializer)
SALESFORCE_DESCRIPTOR.index -> builder.salesforce = deserializeSalesforceDestinationPropertiesDocument(deserializer)
SNOWFLAKE_DESCRIPTOR.index -> builder.snowflake = deserializeSnowflakeDestinationPropertiesDocument(deserializer)
UPSOLVER_DESCRIPTOR.index -> builder.upsolver = deserializeUpsolverDestinationPropertiesDocument(deserializer)
ZENDESK_DESCRIPTOR.index -> builder.zendesk = deserializeZendeskDestinationPropertiesDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}