commonMain.aws.sdk.kotlin.services.wafv2.serde.AwsManagedRulesAtpRuleSetDocumentSerializer.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
The 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.AwsManagedRulesAtpRuleSet
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 serializeAwsManagedRulesAtpRuleSetDocument(serializer: Serializer, input: AwsManagedRulesAtpRuleSet) {
val ENABLEREGEXINPATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("EnableRegexInPath"))
val LOGINPATH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("LoginPath"))
val REQUESTINSPECTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("RequestInspection"))
val RESPONSEINSPECTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ResponseInspection"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ENABLEREGEXINPATH_DESCRIPTOR)
field(LOGINPATH_DESCRIPTOR)
field(REQUESTINSPECTION_DESCRIPTOR)
field(RESPONSEINSPECTION_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(LOGINPATH_DESCRIPTOR, input.loginPath)
input.requestInspection?.let { field(REQUESTINSPECTION_DESCRIPTOR, it, ::serializeRequestInspectionDocument) }
input.responseInspection?.let { field(RESPONSEINSPECTION_DESCRIPTOR, it, ::serializeResponseInspectionDocument) }
if (input.enableRegexInPath != false) field(ENABLEREGEXINPATH_DESCRIPTOR, input.enableRegexInPath)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy