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

com.pulumi.azure.waf.kotlin.outputs.PolicyCustomRuleMatchCondition.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.waf.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property matchValues A list of match values. This is **Required** when the `operator` is not `Any`.
 * @property matchVariables One or more `match_variables` blocks as defined below.
 * @property negationCondition Describes if this is negate condition or not
 * @property operator Describes operator to be matched. Possible values are `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith`, `EndsWith` and `Regex`.
 * @property transforms A list of transformations to do before the match is attempted. Possible values are `HtmlEntityDecode`, `Lowercase`, `RemoveNulls`, `Trim`, `UrlDecode` and `UrlEncode`.
 */
public data class PolicyCustomRuleMatchCondition(
    public val matchValues: List? = null,
    public val matchVariables: List,
    public val negationCondition: Boolean? = null,
    public val `operator`: String,
    public val transforms: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.waf.outputs.PolicyCustomRuleMatchCondition):
            PolicyCustomRuleMatchCondition = PolicyCustomRuleMatchCondition(
            matchValues = javaType.matchValues().map({ args0 -> args0 }),
            matchVariables = javaType.matchVariables().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.waf.kotlin.outputs.PolicyCustomRuleMatchConditionMatchVariable.Companion.toKotlin(args0)
                })
            }),
            negationCondition = javaType.negationCondition().map({ args0 -> args0 }).orElse(null),
            `operator` = javaType.`operator`(),
            transforms = javaType.transforms().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy