Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.waf.kotlin.inputs
import com.pulumi.azure.waf.inputs.PolicyCustomRuleMatchConditionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 PolicyCustomRuleMatchConditionArgs(
public val matchValues: Output>? = null,
public val matchVariables: Output>,
public val negationCondition: Output? = null,
public val `operator`: Output,
public val transforms: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.waf.inputs.PolicyCustomRuleMatchConditionArgs =
com.pulumi.azure.waf.inputs.PolicyCustomRuleMatchConditionArgs.builder()
.matchValues(matchValues?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.matchVariables(
matchVariables.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.negationCondition(negationCondition?.applyValue({ args0 -> args0 }))
.`operator`(`operator`.applyValue({ args0 -> args0 }))
.transforms(transforms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [PolicyCustomRuleMatchConditionArgs].
*/
@PulumiTagMarker
public class PolicyCustomRuleMatchConditionArgsBuilder internal constructor() {
private var matchValues: Output>? = null
private var matchVariables: Output>? = null
private var negationCondition: Output? = null
private var `operator`: Output? = null
private var transforms: Output>? = null
/**
* @param value A list of match values. This is **Required** when the `operator` is not `Any`.
*/
@JvmName("sojuwmjfaobyjusm")
public suspend fun matchValues(`value`: Output>) {
this.matchValues = value
}
@JvmName("pytfvrquhhgulfex")
public suspend fun matchValues(vararg values: Output) {
this.matchValues = Output.all(values.asList())
}
/**
* @param values A list of match values. This is **Required** when the `operator` is not `Any`.
*/
@JvmName("mdbuavhbwemklynb")
public suspend fun matchValues(values: List