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

com.pulumi.azure.network.kotlin.inputs.FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs.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 The action to take for the application rules in this collection. Possible values are `Allow` and `Deny`.
 * @property name The name which should be used for this application rule collection.
 * @property priority The priority of the application rule collection. The range is `100` - `65000`.
 * @property rules One or more `application_rule` blocks as defined below.
 */
public data class FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs(
    public val action: Output,
    public val name: Output,
    public val priority: Output,
    public val rules:
    Output>,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.network.inputs.FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs =
        com.pulumi.azure.network.inputs.FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs.builder()
            .action(action.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .priority(priority.applyValue({ args0 -> args0 }))
            .rules(
                rules.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs].
 */
@PulumiTagMarker
public class FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgsBuilder internal
constructor() {
    private var action: Output? = null

    private var name: Output? = null

    private var priority: Output? = null

    private var rules:
        Output>? = null

    /**
     * @param value The action to take for the application rules in this collection. Possible values are `Allow` and `Deny`.
     */
    @JvmName("brhjupliuwkoujat")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value The name which should be used for this application rule collection.
     */
    @JvmName("mnihqnihnocrskhi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The priority of the application rule collection. The range is `100` - `65000`.
     */
    @JvmName("ybqsbmdkddfynvdx")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value One or more `application_rule` blocks as defined below.
     */
    @JvmName("nrjgeknujxpriajf")
    public suspend
    fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values One or more `application_rule` blocks as defined below.
     */
    @JvmName("mbgnwmmvnxpmyqib")
    public suspend
    fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value The action to take for the application rules in this collection. Possible values are `Allow` and `Deny`.
     */
    @JvmName("vnlxbubdiykoxfkn")
    public suspend fun action(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value The name which should be used for this application rule collection.
     */
    @JvmName("qfcdtfhxommvmypb")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The priority of the application rule collection. The range is `100` - `65000`.
     */
    @JvmName("ysonnnekotuthosq")
    public suspend fun priority(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value One or more `application_rule` blocks as defined below.
     */
    @JvmName("oesidryqqstawomr")
    public suspend
    fun rules(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument One or more `application_rule` blocks as defined below.
     */
    @JvmName("idefqplemlwtlvnt")
    public suspend
    fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyRuleCollectionGroupApplicationRuleCollectionRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument One or more `application_rule` blocks as defined below.
     */
    @JvmName("khjnphpirhuifowg")
    public suspend fun rules(
        vararg
        argument: suspend FirewallPolicyRuleCollectionGroupApplicationRuleCollectionRuleArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            FirewallPolicyRuleCollectionGroupApplicationRuleCollectionRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument One or more `application_rule` blocks as defined below.
     */
    @JvmName("tjncglynnddpulwf")
    public suspend
    fun rules(argument: suspend FirewallPolicyRuleCollectionGroupApplicationRuleCollectionRuleArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                FirewallPolicyRuleCollectionGroupApplicationRuleCollectionRuleArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values One or more `application_rule` blocks as defined below.
     */
    @JvmName("lojhhduwgkkbkctu")
    public suspend fun rules(
        vararg
        values: FirewallPolicyRuleCollectionGroupApplicationRuleCollectionRuleArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    internal fun build(): FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs =
        FirewallPolicyRuleCollectionGroupApplicationRuleCollectionArgs(
            action = action ?: throw PulumiNullFieldException("action"),
            name = name ?: throw PulumiNullFieldException("name"),
            priority = priority ?: throw PulumiNullFieldException("priority"),
            rules = rules ?: throw PulumiNullFieldException("rules"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy