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

commonMain.aws.sdk.kotlin.services.appflow.serde.SourceConnectorPropertiesDocumentDeserializer.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.appflow.serde

import aws.sdk.kotlin.services.appflow.model.SourceConnectorProperties
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 deserializeSourceConnectorPropertiesDocument(deserializer: Deserializer): SourceConnectorProperties {
    val builder = SourceConnectorProperties.Builder()
    val AMPLITUDE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Amplitude"))
    val CUSTOMCONNECTOR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CustomConnector"))
    val DATADOG_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Datadog"))
    val DYNATRACE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Dynatrace"))
    val GOOGLEANALYTICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("GoogleAnalytics"))
    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 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 TRENDMICRO_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Trendmicro"))
    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(CUSTOMCONNECTOR_DESCRIPTOR)
        field(DATADOG_DESCRIPTOR)
        field(DYNATRACE_DESCRIPTOR)
        field(GOOGLEANALYTICS_DESCRIPTOR)
        field(INFORNEXUS_DESCRIPTOR)
        field(MARKETO_DESCRIPTOR)
        field(PARDOT_DESCRIPTOR)
        field(S3_DESCRIPTOR)
        field(SAPODATA_DESCRIPTOR)
        field(SALESFORCE_DESCRIPTOR)
        field(SERVICENOW_DESCRIPTOR)
        field(SINGULAR_DESCRIPTOR)
        field(SLACK_DESCRIPTOR)
        field(TRENDMICRO_DESCRIPTOR)
        field(VEEVA_DESCRIPTOR)
        field(ZENDESK_DESCRIPTOR)
    }

    deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
        loop@while (true) {
            when (findNextFieldIndex()) {
                AMPLITUDE_DESCRIPTOR.index -> builder.amplitude = deserializeAmplitudeSourcePropertiesDocument(deserializer)
                CUSTOMCONNECTOR_DESCRIPTOR.index -> builder.customConnector = deserializeCustomConnectorSourcePropertiesDocument(deserializer)
                DATADOG_DESCRIPTOR.index -> builder.datadog = deserializeDatadogSourcePropertiesDocument(deserializer)
                DYNATRACE_DESCRIPTOR.index -> builder.dynatrace = deserializeDynatraceSourcePropertiesDocument(deserializer)
                GOOGLEANALYTICS_DESCRIPTOR.index -> builder.googleAnalytics = deserializeGoogleAnalyticsSourcePropertiesDocument(deserializer)
                INFORNEXUS_DESCRIPTOR.index -> builder.inforNexus = deserializeInforNexusSourcePropertiesDocument(deserializer)
                MARKETO_DESCRIPTOR.index -> builder.marketo = deserializeMarketoSourcePropertiesDocument(deserializer)
                PARDOT_DESCRIPTOR.index -> builder.pardot = deserializePardotSourcePropertiesDocument(deserializer)
                S3_DESCRIPTOR.index -> builder.s3 = deserializeS3SourcePropertiesDocument(deserializer)
                SAPODATA_DESCRIPTOR.index -> builder.sapoData = deserializeSapoDataSourcePropertiesDocument(deserializer)
                SALESFORCE_DESCRIPTOR.index -> builder.salesforce = deserializeSalesforceSourcePropertiesDocument(deserializer)
                SERVICENOW_DESCRIPTOR.index -> builder.serviceNow = deserializeServiceNowSourcePropertiesDocument(deserializer)
                SINGULAR_DESCRIPTOR.index -> builder.singular = deserializeSingularSourcePropertiesDocument(deserializer)
                SLACK_DESCRIPTOR.index -> builder.slack = deserializeSlackSourcePropertiesDocument(deserializer)
                TRENDMICRO_DESCRIPTOR.index -> builder.trendmicro = deserializeTrendmicroSourcePropertiesDocument(deserializer)
                VEEVA_DESCRIPTOR.index -> builder.veeva = deserializeVeevaSourcePropertiesDocument(deserializer)
                ZENDESK_DESCRIPTOR.index -> builder.zendesk = deserializeZendeskSourcePropertiesDocument(deserializer)
                null -> break@loop
                else -> skipValue()
            }
        }
    }
    builder.correctErrors()
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy