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

commonMain.aws.sdk.kotlin.services.wafv2.serde.FieldToMatchDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.wafv2.serde

import aws.sdk.kotlin.services.wafv2.model.FieldToMatch
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 serializeFieldToMatchDocument(serializer: Serializer, input: FieldToMatch) {
    val ALLQUERYARGUMENTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("AllQueryArguments"))
    val BODY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Body"))
    val COOKIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Cookies"))
    val HEADERORDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("HeaderOrder"))
    val HEADERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Headers"))
    val JA3FINGERPRINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("JA3Fingerprint"))
    val JSONBODY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("JsonBody"))
    val METHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Method"))
    val QUERYSTRING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("QueryString"))
    val SINGLEHEADER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SingleHeader"))
    val SINGLEQUERYARGUMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SingleQueryArgument"))
    val URIPATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("UriPath"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ALLQUERYARGUMENTS_DESCRIPTOR)
        field(BODY_DESCRIPTOR)
        field(COOKIES_DESCRIPTOR)
        field(HEADERORDER_DESCRIPTOR)
        field(HEADERS_DESCRIPTOR)
        field(JA3FINGERPRINT_DESCRIPTOR)
        field(JSONBODY_DESCRIPTOR)
        field(METHOD_DESCRIPTOR)
        field(QUERYSTRING_DESCRIPTOR)
        field(SINGLEHEADER_DESCRIPTOR)
        field(SINGLEQUERYARGUMENT_DESCRIPTOR)
        field(URIPATH_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.singleHeader?.let { field(SINGLEHEADER_DESCRIPTOR, it, ::serializeSingleHeaderDocument) }
        input.singleQueryArgument?.let { field(SINGLEQUERYARGUMENT_DESCRIPTOR, it, ::serializeSingleQueryArgumentDocument) }
        input.allQueryArguments?.let { field(ALLQUERYARGUMENTS_DESCRIPTOR, it, ::serializeAllQueryArgumentsDocument) }
        input.uriPath?.let { field(URIPATH_DESCRIPTOR, it, ::serializeUriPathDocument) }
        input.queryString?.let { field(QUERYSTRING_DESCRIPTOR, it, ::serializeQueryStringDocument) }
        input.body?.let { field(BODY_DESCRIPTOR, it, ::serializeBodyDocument) }
        input.method?.let { field(METHOD_DESCRIPTOR, it, ::serializeMethodDocument) }
        input.jsonBody?.let { field(JSONBODY_DESCRIPTOR, it, ::serializeJsonBodyDocument) }
        input.headers?.let { field(HEADERS_DESCRIPTOR, it, ::serializeHeadersDocument) }
        input.cookies?.let { field(COOKIES_DESCRIPTOR, it, ::serializeCookiesDocument) }
        input.headerOrder?.let { field(HEADERORDER_DESCRIPTOR, it, ::serializeHeaderOrderDocument) }
        input.ja3Fingerprint?.let { field(JA3FINGERPRINT_DESCRIPTOR, it, ::serializeJa3FingerprintDocument) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy