![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.network.kotlin.inputs.ManagedRuleOverrideArgs.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.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.ManagedRuleOverrideArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.ActionType
import com.pulumi.azurenative.network.kotlin.enums.ManagedRuleEnabledState
import com.pulumi.core.Either
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
/**
* Defines a managed rule group override setting.
* @property action Describes the override action to be applied when rule matches.
* @property ruleId Identifier for the managed rule.
* @property state The state of the managed rule. Defaults to Disabled if not specified.
*/
public data class ManagedRuleOverrideArgs(
public val action: Output>? = null,
public val ruleId: Output,
public val state: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.ManagedRuleOverrideArgs =
com.pulumi.azurenative.network.inputs.ManagedRuleOverrideArgs.builder()
.action(
action?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.ruleId(ruleId.applyValue({ args0 -> args0 }))
.state(
state?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ManagedRuleOverrideArgs].
*/
@PulumiTagMarker
public class ManagedRuleOverrideArgsBuilder internal constructor() {
private var action: Output>? = null
private var ruleId: Output? = null
private var state: Output>? = null
/**
* @param value Describes the override action to be applied when rule matches.
*/
@JvmName("nkrrspeomwbprrvf")
public suspend fun action(`value`: Output>) {
this.action = value
}
/**
* @param value Identifier for the managed rule.
*/
@JvmName("eqoouioglyahpkwx")
public suspend fun ruleId(`value`: Output) {
this.ruleId = value
}
/**
* @param value The state of the managed rule. Defaults to Disabled if not specified.
*/
@JvmName("tghejjuhbpbbkpyt")
public suspend fun state(`value`: Output>) {
this.state = value
}
/**
* @param value Describes the override action to be applied when rule matches.
*/
@JvmName("xpvboxonxrenofbt")
public suspend fun action(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Describes the override action to be applied when rule matches.
*/
@JvmName("slighpgqcwobywas")
public fun action(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Describes the override action to be applied when rule matches.
*/
@JvmName("evdxshcibvevsijb")
public fun action(`value`: ActionType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Identifier for the managed rule.
*/
@JvmName("ulobixryimomgfel")
public suspend fun ruleId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ruleId = mapped
}
/**
* @param value The state of the managed rule. Defaults to Disabled if not specified.
*/
@JvmName("jfaiqooyakykjcie")
public suspend fun state(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value The state of the managed rule. Defaults to Disabled if not specified.
*/
@JvmName("sekgsxftxnowukpl")
public fun state(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value The state of the managed rule. Defaults to Disabled if not specified.
*/
@JvmName("ocujwplfqyqvktwj")
public fun state(`value`: ManagedRuleEnabledState) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
internal fun build(): ManagedRuleOverrideArgs = ManagedRuleOverrideArgs(
action = action,
ruleId = ruleId ?: throw PulumiNullFieldException("ruleId"),
state = state,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy