![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.waf.kotlin.inputs.PolicyCustomRuleMatchConditionMatchVariableArgs.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.waf.kotlin.inputs
import com.pulumi.azure.waf.inputs.PolicyCustomRuleMatchConditionMatchVariableArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property selector Describes field of the matchVariable collection
* @property variableName The name of the Match Variable. Possible values are `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestUri`, `RequestHeaders`, `RequestBody` and `RequestCookies`.
*/
public data class PolicyCustomRuleMatchConditionMatchVariableArgs(
public val selector: Output? = null,
public val variableName: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.waf.inputs.PolicyCustomRuleMatchConditionMatchVariableArgs = com.pulumi.azure.waf.inputs.PolicyCustomRuleMatchConditionMatchVariableArgs.builder()
.selector(selector?.applyValue({ args0 -> args0 }))
.variableName(variableName.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PolicyCustomRuleMatchConditionMatchVariableArgs].
*/
@PulumiTagMarker
public class PolicyCustomRuleMatchConditionMatchVariableArgsBuilder internal constructor() {
private var selector: Output? = null
private var variableName: Output? = null
/**
* @param value Describes field of the matchVariable collection
*/
@JvmName("issgehcdjoboicdq")
public suspend fun selector(`value`: Output) {
this.selector = value
}
/**
* @param value The name of the Match Variable. Possible values are `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestUri`, `RequestHeaders`, `RequestBody` and `RequestCookies`.
*/
@JvmName("bwnyfdwcyylbfsxv")
public suspend fun variableName(`value`: Output) {
this.variableName = value
}
/**
* @param value Describes field of the matchVariable collection
*/
@JvmName("ljsnubxnuyaublxo")
public suspend fun selector(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.selector = mapped
}
/**
* @param value The name of the Match Variable. Possible values are `RemoteAddr`, `RequestMethod`, `QueryString`, `PostArgs`, `RequestUri`, `RequestHeaders`, `RequestBody` and `RequestCookies`.
*/
@JvmName("vdmtojbrbjvokfvs")
public suspend fun variableName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.variableName = mapped
}
internal fun build(): PolicyCustomRuleMatchConditionMatchVariableArgs =
PolicyCustomRuleMatchConditionMatchVariableArgs(
selector = selector,
variableName = variableName ?: throw PulumiNullFieldException("variableName"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy