![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.cdn.kotlin.inputs.DeliveryRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.cdn.kotlin.inputs
import com.pulumi.azurenative.cdn.inputs.DeliveryRuleArgs.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.Any
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A rule that specifies a set of actions and conditions
* @property actions A list of actions that are executed when all the conditions of a rule are satisfied.
* @property conditions A list of conditions that must be matched for the actions to be executed
* @property name Name of the rule
* @property order The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
*/
public data class DeliveryRuleArgs(
public val actions: Output>,
public val conditions: Output>? = null,
public val name: Output? = null,
public val order: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.cdn.inputs.DeliveryRuleArgs =
com.pulumi.azurenative.cdn.inputs.DeliveryRuleArgs.builder()
.actions(actions.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.conditions(conditions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name?.applyValue({ args0 -> args0 }))
.order(order.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeliveryRuleArgs].
*/
@PulumiTagMarker
public class DeliveryRuleArgsBuilder internal constructor() {
private var actions: Output>? = null
private var conditions: Output>? = null
private var name: Output? = null
private var order: Output? = null
/**
* @param value A list of actions that are executed when all the conditions of a rule are satisfied.
*/
@JvmName("qrpjxfnhttrtmmqq")
public suspend fun actions(`value`: Output>) {
this.actions = value
}
@JvmName("gjgjdbajswqorrgi")
public suspend fun actions(vararg values: Output) {
this.actions = Output.all(values.asList())
}
/**
* @param values A list of actions that are executed when all the conditions of a rule are satisfied.
*/
@JvmName("cmcwatsxtbnjoubg")
public suspend fun actions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy