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

com.pulumi.azure.frontdoor.kotlin.inputs.FirewallPolicyCustomRuleMatchConditionArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.frontdoor.kotlin.inputs

import com.pulumi.azure.frontdoor.inputs.FirewallPolicyCustomRuleMatchConditionArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property matchValues Up to `600` possible values to match. Limit is in total across all `match_condition` blocks and `match_values` arguments. String value itself can be up to `256` characters long.
 * @property matchVariable The request variable to compare with. Possible values are `Cookies`, `PostArgs`, `QueryString`, `RemoteAddr`, `RequestBody`, `RequestHeader`, `RequestMethod`, `RequestUri`, or `SocketAddr`.
 * @property negationCondition Should the result of the condition be negated.
 * @property operator Comparison type to use for matching with the variable value. Possible values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GeoMatch`, `GreaterThan`, `GreaterThanOrEqual`, `IPMatch`, `LessThan`, `LessThanOrEqual` or `RegEx`.
 * @property selector Match against a specific key if the `match_variable` is `QueryString`, `PostArgs`, `RequestHeader` or `Cookies`.
 * @property transforms Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`.
 */
public data class FirewallPolicyCustomRuleMatchConditionArgs(
    public val matchValues: Output>,
    public val matchVariable: Output,
    public val negationCondition: Output? = null,
    public val `operator`: Output,
    public val selector: Output? = null,
    public val transforms: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.frontdoor.inputs.FirewallPolicyCustomRuleMatchConditionArgs =
        com.pulumi.azure.frontdoor.inputs.FirewallPolicyCustomRuleMatchConditionArgs.builder()
            .matchValues(matchValues.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .matchVariable(matchVariable.applyValue({ args0 -> args0 }))
            .negationCondition(negationCondition?.applyValue({ args0 -> args0 }))
            .`operator`(`operator`.applyValue({ args0 -> args0 }))
            .selector(selector?.applyValue({ args0 -> args0 }))
            .transforms(transforms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FirewallPolicyCustomRuleMatchConditionArgs].
 */
@PulumiTagMarker
public class FirewallPolicyCustomRuleMatchConditionArgsBuilder internal constructor() {
    private var matchValues: Output>? = null

    private var matchVariable: Output? = null

    private var negationCondition: Output? = null

    private var `operator`: Output? = null

    private var selector: Output? = null

    private var transforms: Output>? = null

    /**
     * @param value Up to `600` possible values to match. Limit is in total across all `match_condition` blocks and `match_values` arguments. String value itself can be up to `256` characters long.
     */
    @JvmName("oxindxxbxumjuwei")
    public suspend fun matchValues(`value`: Output>) {
        this.matchValues = value
    }

    @JvmName("prlwemxtpiodkkyo")
    public suspend fun matchValues(vararg values: Output) {
        this.matchValues = Output.all(values.asList())
    }

    /**
     * @param values Up to `600` possible values to match. Limit is in total across all `match_condition` blocks and `match_values` arguments. String value itself can be up to `256` characters long.
     */
    @JvmName("wfxscxxctgclexat")
    public suspend fun matchValues(values: List>) {
        this.matchValues = Output.all(values)
    }

    /**
     * @param value The request variable to compare with. Possible values are `Cookies`, `PostArgs`, `QueryString`, `RemoteAddr`, `RequestBody`, `RequestHeader`, `RequestMethod`, `RequestUri`, or `SocketAddr`.
     */
    @JvmName("lbmflsbmlwxxoxmr")
    public suspend fun matchVariable(`value`: Output) {
        this.matchVariable = value
    }

    /**
     * @param value Should the result of the condition be negated.
     */
    @JvmName("jgufeepwlskmwacm")
    public suspend fun negationCondition(`value`: Output) {
        this.negationCondition = value
    }

    /**
     * @param value Comparison type to use for matching with the variable value. Possible values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GeoMatch`, `GreaterThan`, `GreaterThanOrEqual`, `IPMatch`, `LessThan`, `LessThanOrEqual` or `RegEx`.
     */
    @JvmName("nonjodcaulebhmbb")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value Match against a specific key if the `match_variable` is `QueryString`, `PostArgs`, `RequestHeader` or `Cookies`.
     */
    @JvmName("xagkildcoqvcrsej")
    public suspend fun selector(`value`: Output) {
        this.selector = value
    }

    /**
     * @param value Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`.
     */
    @JvmName("ctmbnefoeyxtjnyj")
    public suspend fun transforms(`value`: Output>) {
        this.transforms = value
    }

    @JvmName("ngdhkdnvwfkmuedu")
    public suspend fun transforms(vararg values: Output) {
        this.transforms = Output.all(values.asList())
    }

    /**
     * @param values Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`.
     */
    @JvmName("hstsbokfkawcestc")
    public suspend fun transforms(values: List>) {
        this.transforms = Output.all(values)
    }

    /**
     * @param value Up to `600` possible values to match. Limit is in total across all `match_condition` blocks and `match_values` arguments. String value itself can be up to `256` characters long.
     */
    @JvmName("avgddlwnxantdyva")
    public suspend fun matchValues(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param values Up to `600` possible values to match. Limit is in total across all `match_condition` blocks and `match_values` arguments. String value itself can be up to `256` characters long.
     */
    @JvmName("tidhkdjtlxvgngoc")
    public suspend fun matchValues(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchValues = mapped
    }

    /**
     * @param value The request variable to compare with. Possible values are `Cookies`, `PostArgs`, `QueryString`, `RemoteAddr`, `RequestBody`, `RequestHeader`, `RequestMethod`, `RequestUri`, or `SocketAddr`.
     */
    @JvmName("sunvfqslinjoqpwm")
    public suspend fun matchVariable(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchVariable = mapped
    }

    /**
     * @param value Should the result of the condition be negated.
     */
    @JvmName("fwlvnbabhodolcsy")
    public suspend fun negationCondition(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negationCondition = mapped
    }

    /**
     * @param value Comparison type to use for matching with the variable value. Possible values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GeoMatch`, `GreaterThan`, `GreaterThanOrEqual`, `IPMatch`, `LessThan`, `LessThanOrEqual` or `RegEx`.
     */
    @JvmName("hfjpkqtthpjqckvk")
    public suspend fun `operator`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`operator` = mapped
    }

    /**
     * @param value Match against a specific key if the `match_variable` is `QueryString`, `PostArgs`, `RequestHeader` or `Cookies`.
     */
    @JvmName("asenbdjshbyiyjby")
    public suspend fun selector(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.selector = mapped
    }

    /**
     * @param value Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`.
     */
    @JvmName("hgqwombendbycowg")
    public suspend fun transforms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    /**
     * @param values Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or`URLEncode`.
     */
    @JvmName("pflctxiflafalkhw")
    public suspend fun transforms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    internal fun build(): FirewallPolicyCustomRuleMatchConditionArgs =
        FirewallPolicyCustomRuleMatchConditionArgs(
            matchValues = matchValues ?: throw PulumiNullFieldException("matchValues"),
            matchVariable = matchVariable ?: throw PulumiNullFieldException("matchVariable"),
            negationCondition = negationCondition,
            `operator` = `operator` ?: throw PulumiNullFieldException("operator"),
            selector = selector,
            transforms = transforms,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy