
com.pulumi.azure.frontdoor.kotlin.inputs.RulesEngineRuleMatchConditionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
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.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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy