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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 * Defines a managed rule group to use for exclusion.
 * @property ruleGroupName The managed rule group for exclusion.
 * @property rules List of rules that will be excluded. If none specified, all rules in the group will be excluded.
 */
public data class ExclusionManagedRuleGroupArgs(
    public val ruleGroupName: Output,
    public val rules: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ExclusionManagedRuleGroupArgs =
        com.pulumi.azurenative.network.inputs.ExclusionManagedRuleGroupArgs.builder()
            .ruleGroupName(ruleGroupName.applyValue({ args0 -> args0 }))
            .rules(
                rules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var rules: Output>? = null

    /**
     * @param value The managed rule group for exclusion.
     */
    @JvmName("xamhqlhdppukwdob")
    public suspend fun ruleGroupName(`value`: Output) {
        this.ruleGroupName = value
    }

    /**
     * @param value List of rules that will be excluded. If none specified, all rules in the group will be excluded.
     */
    @JvmName("lkhspvfijylknaxq")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values List of rules that will be excluded. If none specified, all rules in the group will be excluded.
     */
    @JvmName("qykmfyjskfpitlcg")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value The managed rule group for exclusion.
     */
    @JvmName("nliekkemopncsfht")
    public suspend fun ruleGroupName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleGroupName = mapped
    }

    /**
     * @param value List of rules that will be excluded. If none specified, all rules in the group will be excluded.
     */
    @JvmName("gosehwbkuwbqgimq")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument List of rules that will be excluded. If none specified, all rules in the group will be excluded.
     */
    @JvmName("yosgqbokgwwcwbqn")
    public suspend fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ExclusionManagedRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument List of rules that will be excluded. If none specified, all rules in the group will be excluded.
     */
    @JvmName("rndumuimwwbojava")
    public suspend fun rules(vararg argument: suspend ExclusionManagedRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ExclusionManagedRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument List of rules that will be excluded. If none specified, all rules in the group will be excluded.
     */
    @JvmName("dfbtqhebbkwaruwc")
    public suspend fun rules(argument: suspend ExclusionManagedRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ExclusionManagedRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values List of rules that will be excluded. If none specified, all rules in the group will be excluded.
     */
    @JvmName("drsgpikitirgeutc")
    public suspend fun rules(vararg values: ExclusionManagedRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy