commonMain.aws.sdk.kotlin.services.wafv2.serde.RuleGroupReferenceStatementDocumentSerializer.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.RuleGroupReferenceStatement
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 serializeRuleGroupReferenceStatementDocument(serializer: Serializer, input: RuleGroupReferenceStatement) {
val ARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ARN"))
val EXCLUDEDRULES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("ExcludedRules"))
val RULEACTIONOVERRIDES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("RuleActionOverrides"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ARN_DESCRIPTOR)
field(EXCLUDEDRULES_DESCRIPTOR)
field(RULEACTIONOVERRIDES_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(ARN_DESCRIPTOR, input.arn)
if (input.excludedRules != null) {
listField(EXCLUDEDRULES_DESCRIPTOR) {
for (el0 in input.excludedRules) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeExcludedRuleDocument))
}
}
}
if (input.ruleActionOverrides != null) {
listField(RULEACTIONOVERRIDES_DESCRIPTOR) {
for (el0 in input.ruleActionOverrides) {
serializeSdkSerializable(asSdkSerializable(el0, ::serializeRuleActionOverrideDocument))
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy