All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.network.kotlin.inputs.ApplicationGatewayFirewallDisabledRuleGroupArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.ApplicationGatewayFirewallDisabledRuleGroupArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Allows to disable rules within a rule group or an entire rule group.
 * @property ruleGroupName The name of the rule group that will be disabled.
 * @property rules The list of rules that will be disabled. If null, all rules of the rule group will be disabled.
 */
public data class ApplicationGatewayFirewallDisabledRuleGroupArgs(
    public val ruleGroupName: Output,
    public val rules: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ApplicationGatewayFirewallDisabledRuleGroupArgs =
        com.pulumi.azurenative.network.inputs.ApplicationGatewayFirewallDisabledRuleGroupArgs.builder()
            .ruleGroupName(ruleGroupName.applyValue({ args0 -> args0 }))
            .rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ApplicationGatewayFirewallDisabledRuleGroupArgs].
 */
@PulumiTagMarker
public class ApplicationGatewayFirewallDisabledRuleGroupArgsBuilder internal constructor() {
    private var ruleGroupName: Output? = null

    private var rules: Output>? = null

    /**
     * @param value The name of the rule group that will be disabled.
     */
    @JvmName("owvheglgusacljug")
    public suspend fun ruleGroupName(`value`: Output) {
        this.ruleGroupName = value
    }

    /**
     * @param value The list of rules that will be disabled. If null, all rules of the rule group will be disabled.
     */
    @JvmName("iicsqynovxcixmlm")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

    @JvmName("csiqnquoetqcjofc")
    public suspend fun rules(vararg values: Output) {
        this.rules = Output.all(values.asList())
    }

    /**
     * @param values The list of rules that will be disabled. If null, all rules of the rule group will be disabled.
     */
    @JvmName("fjmxqhnywupfytcx")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value The name of the rule group that will be disabled.
     */
    @JvmName("hlrbetunokyfybqy")
    public suspend fun ruleGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleGroupName = mapped
    }

    /**
     * @param value The list of rules that will be disabled. If null, all rules of the rule group will be disabled.
     */
    @JvmName("qjrrdjsbvqxbwrls")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param values The list of rules that will be disabled. If null, all rules of the rule group will be disabled.
     */
    @JvmName("eqlihuqbsugawwjn")
    public suspend fun rules(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    internal fun build(): ApplicationGatewayFirewallDisabledRuleGroupArgs =
        ApplicationGatewayFirewallDisabledRuleGroupArgs(
            ruleGroupName = ruleGroupName ?: throw PulumiNullFieldException("ruleGroupName"),
            rules = rules,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy