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

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

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

import com.pulumi.azure.frontdoor.inputs.RulesEngineRuleMatchConditionArgs.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 negateCondition can be set to `true` or `false` to negate the given condition. Defaults to `false`.
 * @property operator can be set to `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith` or `EndsWith`
 * @property selector match against a specific key when `variable` is set to `PostArgs` or `RequestHeader`. It cannot be used with `QueryString` and `RequestMethod`.
 * @property transforms can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
 * @property values (array) can contain one or more strings.
 * @property variable can be set to `IsMobile`, `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestURI`, `RequestPath`, `RequestFilename`, `RequestFilenameExtension`,`RequestHeader`,`RequestBody` or `RequestScheme`.
 */
public data class RulesEngineRuleMatchConditionArgs(
    public val negateCondition: Output? = null,
    public val `operator`: Output,
    public val selector: Output? = null,
    public val transforms: Output>? = null,
    public val values: Output>? = null,
    public val variable: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.frontdoor.inputs.RulesEngineRuleMatchConditionArgs =
        com.pulumi.azure.frontdoor.inputs.RulesEngineRuleMatchConditionArgs.builder()
            .negateCondition(negateCondition?.applyValue({ args0 -> args0 }))
            .`operator`(`operator`.applyValue({ args0 -> args0 }))
            .selector(selector?.applyValue({ args0 -> args0 }))
            .transforms(transforms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .values(values?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .variable(variable?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RulesEngineRuleMatchConditionArgs].
 */
@PulumiTagMarker
public class RulesEngineRuleMatchConditionArgsBuilder internal constructor() {
    private var negateCondition: Output? = null

    private var `operator`: Output? = null

    private var selector: Output? = null

    private var transforms: Output>? = null

    private var values: Output>? = null

    private var variable: Output? = null

    /**
     * @param value can be set to `true` or `false` to negate the given condition. Defaults to `false`.
     */
    @JvmName("xghcjuxujcwxltap")
    public suspend fun negateCondition(`value`: Output) {
        this.negateCondition = value
    }

    /**
     * @param value can be set to `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith` or `EndsWith`
     */
    @JvmName("jxrnhuqufonfwgjl")
    public suspend fun `operator`(`value`: Output) {
        this.`operator` = value
    }

    /**
     * @param value match against a specific key when `variable` is set to `PostArgs` or `RequestHeader`. It cannot be used with `QueryString` and `RequestMethod`.
     */
    @JvmName("fiagstpnejrjsglh")
    public suspend fun selector(`value`: Output) {
        this.selector = value
    }

    /**
     * @param value can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
     */
    @JvmName("hfiiyndmoebsqwnp")
    public suspend fun transforms(`value`: Output>) {
        this.transforms = value
    }

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

    /**
     * @param values can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
     */
    @JvmName("fgysiepaunxsyiig")
    public suspend fun transforms(values: List>) {
        this.transforms = Output.all(values)
    }

    /**
     * @param value (array) can contain one or more strings.
     */
    @JvmName("cqfgwgeytxkwggvb")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values (array) can contain one or more strings.
     */
    @JvmName("vlqdeahqlgbgqyul")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value can be set to `IsMobile`, `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestURI`, `RequestPath`, `RequestFilename`, `RequestFilenameExtension`,`RequestHeader`,`RequestBody` or `RequestScheme`.
     */
    @JvmName("qwnrsjagkciqbdms")
    public suspend fun variable(`value`: Output) {
        this.variable = value
    }

    /**
     * @param value can be set to `true` or `false` to negate the given condition. Defaults to `false`.
     */
    @JvmName("qpikmkmhljiiwabn")
    public suspend fun negateCondition(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.negateCondition = mapped
    }

    /**
     * @param value can be set to `Any`, `IPMatch`, `GeoMatch`, `Equal`, `Contains`, `LessThan`, `GreaterThan`, `LessThanOrEqual`, `GreaterThanOrEqual`, `BeginsWith` or `EndsWith`
     */
    @JvmName("pcniqxnhdrtpfojp")
    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 when `variable` is set to `PostArgs` or `RequestHeader`. It cannot be used with `QueryString` and `RequestMethod`.
     */
    @JvmName("vmgglywybledkive")
    public suspend fun selector(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.selector = mapped
    }

    /**
     * @param value can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
     */
    @JvmName("hucjxojbfkvhywck")
    public suspend fun transforms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    /**
     * @param values can be set to one or more values out of `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`
     */
    @JvmName("eyaykaaetkmirxto")
    public suspend fun transforms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transforms = mapped
    }

    /**
     * @param value (array) can contain one or more strings.
     */
    @JvmName("tugcvdnakkoyarro")
    public suspend fun values(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values (array) can contain one or more strings.
     */
    @JvmName("prpxtoxwrlwlhapf")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param value can be set to `IsMobile`, `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestURI`, `RequestPath`, `RequestFilename`, `RequestFilenameExtension`,`RequestHeader`,`RequestBody` or `RequestScheme`.
     */
    @JvmName("iifktwamltbsratj")
    public suspend fun variable(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.variable = mapped
    }

    internal fun build(): RulesEngineRuleMatchConditionArgs = RulesEngineRuleMatchConditionArgs(
        negateCondition = negateCondition,
        `operator` = `operator` ?: throw PulumiNullFieldException("operator"),
        selector = selector,
        transforms = transforms,
        values = values,
        variable = variable,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy