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

commonMain.aws.sdk.kotlin.services.kendra.serde.ConfluenceConfigurationDocumentSerializer.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.ConfluenceConfiguration
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 serializeConfluenceConfigurationDocument(serializer: Serializer, input: ConfluenceConfiguration) {
    val ATTACHMENTCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AttachmentConfiguration"))
    val AUTHENTICATIONTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("AuthenticationType"))
    val BLOGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BlogConfiguration"))
    val EXCLUSIONPATTERNS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("ExclusionPatterns"))
    val INCLUSIONPATTERNS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("InclusionPatterns"))
    val PAGECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("PageConfiguration"))
    val PROXYCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ProxyConfiguration"))
    val SECRETARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SecretArn"))
    val SERVERURL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServerUrl"))
    val SPACECONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SpaceConfiguration"))
    val VERSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Version"))
    val VPCCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("VpcConfiguration"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ATTACHMENTCONFIGURATION_DESCRIPTOR)
        field(AUTHENTICATIONTYPE_DESCRIPTOR)
        field(BLOGCONFIGURATION_DESCRIPTOR)
        field(EXCLUSIONPATTERNS_DESCRIPTOR)
        field(INCLUSIONPATTERNS_DESCRIPTOR)
        field(PAGECONFIGURATION_DESCRIPTOR)
        field(PROXYCONFIGURATION_DESCRIPTOR)
        field(SECRETARN_DESCRIPTOR)
        field(SERVERURL_DESCRIPTOR)
        field(SPACECONFIGURATION_DESCRIPTOR)
        field(VERSION_DESCRIPTOR)
        field(VPCCONFIGURATION_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        field(SERVERURL_DESCRIPTOR, input.serverUrl)
        field(SECRETARN_DESCRIPTOR, input.secretArn)
        field(VERSION_DESCRIPTOR, input.version.value)
        input.spaceConfiguration?.let { field(SPACECONFIGURATION_DESCRIPTOR, it, ::serializeConfluenceSpaceConfigurationDocument) }
        input.pageConfiguration?.let { field(PAGECONFIGURATION_DESCRIPTOR, it, ::serializeConfluencePageConfigurationDocument) }
        input.blogConfiguration?.let { field(BLOGCONFIGURATION_DESCRIPTOR, it, ::serializeConfluenceBlogConfigurationDocument) }
        input.attachmentConfiguration?.let { field(ATTACHMENTCONFIGURATION_DESCRIPTOR, it, ::serializeConfluenceAttachmentConfigurationDocument) }
        input.vpcConfiguration?.let { field(VPCCONFIGURATION_DESCRIPTOR, it, ::serializeDataSourceVpcConfigurationDocument) }
        if (input.inclusionPatterns != null) {
            listField(INCLUSIONPATTERNS_DESCRIPTOR) {
                for (el0 in input.inclusionPatterns) {
                    serializeString(el0)
                }
            }
        }
        if (input.exclusionPatterns != null) {
            listField(EXCLUSIONPATTERNS_DESCRIPTOR) {
                for (el0 in input.exclusionPatterns) {
                    serializeString(el0)
                }
            }
        }
        input.proxyConfiguration?.let { field(PROXYCONFIGURATION_DESCRIPTOR, it, ::serializeProxyConfigurationDocument) }
        input.authenticationType?.let { field(AUTHENTICATIONTYPE_DESCRIPTOR, it.value) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy