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

commonMain.aws.sdk.kotlin.services.appflow.serde.ConnectorProfileCredentialsDocumentSerializer.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.ConnectorProfileCredentials
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 serializeConnectorProfileCredentialsDocument(serializer: Serializer, input: ConnectorProfileCredentials) {
    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 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 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 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(HONEYCODE_DESCRIPTOR)
        field(INFORNEXUS_DESCRIPTOR)
        field(MARKETO_DESCRIPTOR)
        field(PARDOT_DESCRIPTOR)
        field(REDSHIFT_DESCRIPTOR)
        field(SAPODATA_DESCRIPTOR)
        field(SALESFORCE_DESCRIPTOR)
        field(SERVICENOW_DESCRIPTOR)
        field(SINGULAR_DESCRIPTOR)
        field(SLACK_DESCRIPTOR)
        field(SNOWFLAKE_DESCRIPTOR)
        field(TRENDMICRO_DESCRIPTOR)
        field(VEEVA_DESCRIPTOR)
        field(ZENDESK_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.amplitude?.let { field(AMPLITUDE_DESCRIPTOR, it, ::serializeAmplitudeConnectorProfileCredentialsDocument) }
        input.datadog?.let { field(DATADOG_DESCRIPTOR, it, ::serializeDatadogConnectorProfileCredentialsDocument) }
        input.dynatrace?.let { field(DYNATRACE_DESCRIPTOR, it, ::serializeDynatraceConnectorProfileCredentialsDocument) }
        input.googleAnalytics?.let { field(GOOGLEANALYTICS_DESCRIPTOR, it, ::serializeGoogleAnalyticsConnectorProfileCredentialsDocument) }
        input.honeycode?.let { field(HONEYCODE_DESCRIPTOR, it, ::serializeHoneycodeConnectorProfileCredentialsDocument) }
        input.inforNexus?.let { field(INFORNEXUS_DESCRIPTOR, it, ::serializeInforNexusConnectorProfileCredentialsDocument) }
        input.marketo?.let { field(MARKETO_DESCRIPTOR, it, ::serializeMarketoConnectorProfileCredentialsDocument) }
        input.redshift?.let { field(REDSHIFT_DESCRIPTOR, it, ::serializeRedshiftConnectorProfileCredentialsDocument) }
        input.salesforce?.let { field(SALESFORCE_DESCRIPTOR, it, ::serializeSalesforceConnectorProfileCredentialsDocument) }
        input.serviceNow?.let { field(SERVICENOW_DESCRIPTOR, it, ::serializeServiceNowConnectorProfileCredentialsDocument) }
        input.singular?.let { field(SINGULAR_DESCRIPTOR, it, ::serializeSingularConnectorProfileCredentialsDocument) }
        input.slack?.let { field(SLACK_DESCRIPTOR, it, ::serializeSlackConnectorProfileCredentialsDocument) }
        input.snowflake?.let { field(SNOWFLAKE_DESCRIPTOR, it, ::serializeSnowflakeConnectorProfileCredentialsDocument) }
        input.trendmicro?.let { field(TRENDMICRO_DESCRIPTOR, it, ::serializeTrendmicroConnectorProfileCredentialsDocument) }
        input.veeva?.let { field(VEEVA_DESCRIPTOR, it, ::serializeVeevaConnectorProfileCredentialsDocument) }
        input.zendesk?.let { field(ZENDESK_DESCRIPTOR, it, ::serializeZendeskConnectorProfileCredentialsDocument) }
        input.sapoData?.let { field(SAPODATA_DESCRIPTOR, it, ::serializeSapoDataConnectorProfileCredentialsDocument) }
        input.customConnector?.let { field(CUSTOMCONNECTOR_DESCRIPTOR, it, ::serializeCustomConnectorProfileCredentialsDocument) }
        input.pardot?.let { field(PARDOT_DESCRIPTOR, it, ::serializePardotConnectorProfileCredentialsDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy