com.pulumi.azure.frontdoor.kotlin.inputs.RulesEngineRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.frontdoor.kotlin.inputs
import com.pulumi.azure.frontdoor.inputs.RulesEngineRuleArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property action An `action` block as defined below.
* @property matchConditions One or more `match_condition` block as defined below.
* @property name The name of the rule.
* @property priority Priority of the rule, must be unique per rules engine definition.
*/
public data class RulesEngineRuleArgs(
public val action: Output? = null,
public val matchConditions: Output>? = null,
public val name: Output,
public val priority: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.frontdoor.inputs.RulesEngineRuleArgs =
com.pulumi.azure.frontdoor.inputs.RulesEngineRuleArgs.builder()
.action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.matchConditions(
matchConditions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.name(name.applyValue({ args0 -> args0 }))
.priority(priority.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RulesEngineRuleArgs].
*/
@PulumiTagMarker
public class RulesEngineRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var matchConditions: Output>? = null
private var name: Output? = null
private var priority: Output? = null
/**
* @param value An `action` block as defined below.
*/
@JvmName("uluewynmmwumoygd")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value One or more `match_condition` block as defined below.
*/
@JvmName("chvenblqptkgtgil")
public suspend fun matchConditions(`value`: Output>) {
this.matchConditions = value
}
@JvmName("wcvhocvkubqtcsbc")
public suspend fun matchConditions(vararg values: Output) {
this.matchConditions = Output.all(values.asList())
}
/**
* @param values One or more `match_condition` block as defined below.
*/
@JvmName("qlllwhmmqxacdlkl")
public suspend fun matchConditions(values: List