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

commonMain.aws.sdk.kotlin.services.kendra.serde.DataSourceConfigurationDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.kendra.serde

import aws.sdk.kotlin.services.kendra.model.DataSourceConfiguration
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 serializeDataSourceConfigurationDocument(serializer: Serializer, input: DataSourceConfiguration) {
    val ALFRESCOCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AlfrescoConfiguration"))
    val BOXCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BoxConfiguration"))
    val CONFLUENCECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ConfluenceConfiguration"))
    val DATABASECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("DatabaseConfiguration"))
    val FSXCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("FsxConfiguration"))
    val GITHUBCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("GitHubConfiguration"))
    val GOOGLEDRIVECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("GoogleDriveConfiguration"))
    val JIRACONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("JiraConfiguration"))
    val ONEDRIVECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("OneDriveConfiguration"))
    val QUIPCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("QuipConfiguration"))
    val S3CONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3Configuration"))
    val SALESFORCECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SalesforceConfiguration"))
    val SERVICENOWCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ServiceNowConfiguration"))
    val SHAREPOINTCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SharePointConfiguration"))
    val SLACKCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SlackConfiguration"))
    val TEMPLATECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("TemplateConfiguration"))
    val WEBCRAWLERCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("WebCrawlerConfiguration"))
    val WORKDOCSCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("WorkDocsConfiguration"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ALFRESCOCONFIGURATION_DESCRIPTOR)
        field(BOXCONFIGURATION_DESCRIPTOR)
        field(CONFLUENCECONFIGURATION_DESCRIPTOR)
        field(DATABASECONFIGURATION_DESCRIPTOR)
        field(FSXCONFIGURATION_DESCRIPTOR)
        field(GITHUBCONFIGURATION_DESCRIPTOR)
        field(GOOGLEDRIVECONFIGURATION_DESCRIPTOR)
        field(JIRACONFIGURATION_DESCRIPTOR)
        field(ONEDRIVECONFIGURATION_DESCRIPTOR)
        field(QUIPCONFIGURATION_DESCRIPTOR)
        field(S3CONFIGURATION_DESCRIPTOR)
        field(SALESFORCECONFIGURATION_DESCRIPTOR)
        field(SERVICENOWCONFIGURATION_DESCRIPTOR)
        field(SHAREPOINTCONFIGURATION_DESCRIPTOR)
        field(SLACKCONFIGURATION_DESCRIPTOR)
        field(TEMPLATECONFIGURATION_DESCRIPTOR)
        field(WEBCRAWLERCONFIGURATION_DESCRIPTOR)
        field(WORKDOCSCONFIGURATION_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.s3Configuration?.let { field(S3CONFIGURATION_DESCRIPTOR, it, ::serializeS3DataSourceConfigurationDocument) }
        input.sharePointConfiguration?.let { field(SHAREPOINTCONFIGURATION_DESCRIPTOR, it, ::serializeSharePointConfigurationDocument) }
        input.databaseConfiguration?.let { field(DATABASECONFIGURATION_DESCRIPTOR, it, ::serializeDatabaseConfigurationDocument) }
        input.salesforceConfiguration?.let { field(SALESFORCECONFIGURATION_DESCRIPTOR, it, ::serializeSalesforceConfigurationDocument) }
        input.oneDriveConfiguration?.let { field(ONEDRIVECONFIGURATION_DESCRIPTOR, it, ::serializeOneDriveConfigurationDocument) }
        input.serviceNowConfiguration?.let { field(SERVICENOWCONFIGURATION_DESCRIPTOR, it, ::serializeServiceNowConfigurationDocument) }
        input.confluenceConfiguration?.let { field(CONFLUENCECONFIGURATION_DESCRIPTOR, it, ::serializeConfluenceConfigurationDocument) }
        input.googleDriveConfiguration?.let { field(GOOGLEDRIVECONFIGURATION_DESCRIPTOR, it, ::serializeGoogleDriveConfigurationDocument) }
        input.webCrawlerConfiguration?.let { field(WEBCRAWLERCONFIGURATION_DESCRIPTOR, it, ::serializeWebCrawlerConfigurationDocument) }
        input.workDocsConfiguration?.let { field(WORKDOCSCONFIGURATION_DESCRIPTOR, it, ::serializeWorkDocsConfigurationDocument) }
        input.fsxConfiguration?.let { field(FSXCONFIGURATION_DESCRIPTOR, it, ::serializeFsxConfigurationDocument) }
        input.slackConfiguration?.let { field(SLACKCONFIGURATION_DESCRIPTOR, it, ::serializeSlackConfigurationDocument) }
        input.boxConfiguration?.let { field(BOXCONFIGURATION_DESCRIPTOR, it, ::serializeBoxConfigurationDocument) }
        input.quipConfiguration?.let { field(QUIPCONFIGURATION_DESCRIPTOR, it, ::serializeQuipConfigurationDocument) }
        input.jiraConfiguration?.let { field(JIRACONFIGURATION_DESCRIPTOR, it, ::serializeJiraConfigurationDocument) }
        input.gitHubConfiguration?.let { field(GITHUBCONFIGURATION_DESCRIPTOR, it, ::serializeGitHubConfigurationDocument) }
        input.alfrescoConfiguration?.let { field(ALFRESCOCONFIGURATION_DESCRIPTOR, it, ::serializeAlfrescoConfigurationDocument) }
        input.templateConfiguration?.let { field(TEMPLATECONFIGURATION_DESCRIPTOR, it, ::serializeTemplateConfigurationDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy