commonMain.aws.sdk.kotlin.services.appflow.serde.ConnectorMetadataDocumentDeserializer.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.serde
import aws.sdk.kotlin.services.appflow.model.ConnectorMetadata
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 deserializeConnectorMetadataDocument(deserializer: Deserializer): ConnectorMetadata {
val builder = ConnectorMetadata.Builder()
val AMPLITUDE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Amplitude"))
val CUSTOMERPROFILES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CustomerProfiles"))
val DATADOG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Datadog"))
val DYNATRACE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Dynatrace"))
val EVENTBRIDGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("EventBridge"))
val GOOGLEANALYTICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("GoogleAnalytics"))
val HONEYCODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Honeycode"))
val INFORNEXUS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InforNexus"))
val MARKETO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Marketo"))
val PARDOT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Pardot"))
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 SERVICENOW_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ServiceNow"))
val SINGULAR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Singular"))
val SLACK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Slack"))
val SNOWFLAKE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Snowflake"))
val TRENDMICRO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Trendmicro"))
val UPSOLVER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Upsolver"))
val VEEVA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Veeva"))
val ZENDESK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Zendesk"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AMPLITUDE_DESCRIPTOR)
field(CUSTOMERPROFILES_DESCRIPTOR)
field(DATADOG_DESCRIPTOR)
field(DYNATRACE_DESCRIPTOR)
field(EVENTBRIDGE_DESCRIPTOR)
field(GOOGLEANALYTICS_DESCRIPTOR)
field(HONEYCODE_DESCRIPTOR)
field(INFORNEXUS_DESCRIPTOR)
field(MARKETO_DESCRIPTOR)
field(PARDOT_DESCRIPTOR)
field(REDSHIFT_DESCRIPTOR)
field(S3_DESCRIPTOR)
field(SAPODATA_DESCRIPTOR)
field(SALESFORCE_DESCRIPTOR)
field(SERVICENOW_DESCRIPTOR)
field(SINGULAR_DESCRIPTOR)
field(SLACK_DESCRIPTOR)
field(SNOWFLAKE_DESCRIPTOR)
field(TRENDMICRO_DESCRIPTOR)
field(UPSOLVER_DESCRIPTOR)
field(VEEVA_DESCRIPTOR)
field(ZENDESK_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
AMPLITUDE_DESCRIPTOR.index -> builder.amplitude = deserializeAmplitudeMetadataDocument(deserializer)
CUSTOMERPROFILES_DESCRIPTOR.index -> builder.customerProfiles = deserializeCustomerProfilesMetadataDocument(deserializer)
DATADOG_DESCRIPTOR.index -> builder.datadog = deserializeDatadogMetadataDocument(deserializer)
DYNATRACE_DESCRIPTOR.index -> builder.dynatrace = deserializeDynatraceMetadataDocument(deserializer)
EVENTBRIDGE_DESCRIPTOR.index -> builder.eventBridge = deserializeEventBridgeMetadataDocument(deserializer)
GOOGLEANALYTICS_DESCRIPTOR.index -> builder.googleAnalytics = deserializeGoogleAnalyticsMetadataDocument(deserializer)
HONEYCODE_DESCRIPTOR.index -> builder.honeycode = deserializeHoneycodeMetadataDocument(deserializer)
INFORNEXUS_DESCRIPTOR.index -> builder.inforNexus = deserializeInforNexusMetadataDocument(deserializer)
MARKETO_DESCRIPTOR.index -> builder.marketo = deserializeMarketoMetadataDocument(deserializer)
PARDOT_DESCRIPTOR.index -> builder.pardot = deserializePardotMetadataDocument(deserializer)
REDSHIFT_DESCRIPTOR.index -> builder.redshift = deserializeRedshiftMetadataDocument(deserializer)
S3_DESCRIPTOR.index -> builder.s3 = deserializeS3MetadataDocument(deserializer)
SAPODATA_DESCRIPTOR.index -> builder.sapoData = deserializeSapoDataMetadataDocument(deserializer)
SALESFORCE_DESCRIPTOR.index -> builder.salesforce = deserializeSalesforceMetadataDocument(deserializer)
SERVICENOW_DESCRIPTOR.index -> builder.serviceNow = deserializeServiceNowMetadataDocument(deserializer)
SINGULAR_DESCRIPTOR.index -> builder.singular = deserializeSingularMetadataDocument(deserializer)
SLACK_DESCRIPTOR.index -> builder.slack = deserializeSlackMetadataDocument(deserializer)
SNOWFLAKE_DESCRIPTOR.index -> builder.snowflake = deserializeSnowflakeMetadataDocument(deserializer)
TRENDMICRO_DESCRIPTOR.index -> builder.trendmicro = deserializeTrendmicroMetadataDocument(deserializer)
UPSOLVER_DESCRIPTOR.index -> builder.upsolver = deserializeUpsolverMetadataDocument(deserializer)
VEEVA_DESCRIPTOR.index -> builder.veeva = deserializeVeevaMetadataDocument(deserializer)
ZENDESK_DESCRIPTOR.index -> builder.zendesk = deserializeZendeskMetadataDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}