commonMain.aws.sdk.kotlin.services.wafv2.serde.RateBasedStatementCustomKeyDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wafv2-jvm Show documentation
Show all versions of wafv2-jvm Show documentation
The AWS Kotlin client for WAFV2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wafv2.serde
import aws.sdk.kotlin.services.wafv2.model.RateBasedStatementCustomKey
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 serializeRateBasedStatementCustomKeyDocument(serializer: Serializer, input: RateBasedStatementCustomKey) {
val COOKIE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Cookie"))
val FORWARDEDIP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ForwardedIP"))
val HTTPMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("HTTPMethod"))
val HEADER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("Header"))
val IP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("IP"))
val LABELNAMESPACE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("LabelNamespace"))
val QUERYARGUMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("QueryArgument"))
val QUERYSTRING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("QueryString"))
val URIPATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("UriPath"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(COOKIE_DESCRIPTOR)
field(FORWARDEDIP_DESCRIPTOR)
field(HTTPMETHOD_DESCRIPTOR)
field(HEADER_DESCRIPTOR)
field(IP_DESCRIPTOR)
field(LABELNAMESPACE_DESCRIPTOR)
field(QUERYARGUMENT_DESCRIPTOR)
field(QUERYSTRING_DESCRIPTOR)
field(URIPATH_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.header?.let { field(HEADER_DESCRIPTOR, it, ::serializeRateLimitHeaderDocument) }
input.cookie?.let { field(COOKIE_DESCRIPTOR, it, ::serializeRateLimitCookieDocument) }
input.queryArgument?.let { field(QUERYARGUMENT_DESCRIPTOR, it, ::serializeRateLimitQueryArgumentDocument) }
input.queryString?.let { field(QUERYSTRING_DESCRIPTOR, it, ::serializeRateLimitQueryStringDocument) }
input.httpMethod?.let { field(HTTPMETHOD_DESCRIPTOR, it, ::serializeRateLimitHttpMethodDocument) }
input.forwardedIp?.let { field(FORWARDEDIP_DESCRIPTOR, it, ::serializeRateLimitForwardedIpDocument) }
input.ip?.let { field(IP_DESCRIPTOR, it, ::serializeRateLimitIpDocument) }
input.labelNamespace?.let { field(LABELNAMESPACE_DESCRIPTOR, it, ::serializeRateLimitLabelNamespaceDocument) }
input.uriPath?.let { field(URIPATH_DESCRIPTOR, it, ::serializeRateLimitUriPathDocument) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy