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

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

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

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

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

/**
 * Firewall Policy NAT Rule Collection.
 * @property action The action type of a Nat rule collection.
 * @property name The name of the rule collection.
 * @property priority Priority of the Firewall Policy Rule Collection resource.
 * @property ruleCollectionType The type of the rule collection.
 * Expected value is 'FirewallPolicyNatRuleCollection'.
 * @property rules List of rules included in a rule collection.
 */
public data class FirewallPolicyNatRuleCollectionArgs(
    public val action: Output? = null,
    public val name: Output? = null,
    public val priority: Output? = null,
    public val ruleCollectionType: Output,
    public val rules: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.FirewallPolicyNatRuleCollectionArgs =
        com.pulumi.azurenative.network.inputs.FirewallPolicyNatRuleCollectionArgs.builder()
            .action(action?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .priority(priority?.applyValue({ args0 -> args0 }))
            .ruleCollectionType(ruleCollectionType.applyValue({ args0 -> args0 }))
            .rules(rules?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var name: Output? = null

    private var priority: Output? = null

    private var ruleCollectionType: Output? = null

    private var rules: Output>? = null

    /**
     * @param value The action type of a Nat rule collection.
     */
    @JvmName("agkabkjcwjkrqltc")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value The name of the rule collection.
     */
    @JvmName("kncuwifjxrbwyyjm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Priority of the Firewall Policy Rule Collection resource.
     */
    @JvmName("abqgkmjcjuvtuden")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value The type of the rule collection.
     * Expected value is 'FirewallPolicyNatRuleCollection'.
     */
    @JvmName("nddtynbeeblhjgym")
    public suspend fun ruleCollectionType(`value`: Output) {
        this.ruleCollectionType = value
    }

    /**
     * @param value List of rules included in a rule collection.
     */
    @JvmName("guyfdqngppvgpnxh")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values List of rules included in a rule collection.
     */
    @JvmName("kohlgycvpmbssjnj")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value The action type of a Nat rule collection.
     */
    @JvmName("lykhtepapsejkkwd")
    public suspend fun action(`value`: FirewallPolicyNatRuleCollectionActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param argument The action type of a Nat rule collection.
     */
    @JvmName("pmfagspfqcjjsryo")
    public suspend fun action(argument: suspend FirewallPolicyNatRuleCollectionActionArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyNatRuleCollectionActionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.action = mapped
    }

    /**
     * @param value The name of the rule collection.
     */
    @JvmName("kqxkgtpaksetydkt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Priority of the Firewall Policy Rule Collection resource.
     */
    @JvmName("aiiqiqjrydvrlcvm")
    public suspend fun priority(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value The type of the rule collection.
     * Expected value is 'FirewallPolicyNatRuleCollection'.
     */
    @JvmName("jbbjpjsruvmuvjql")
    public suspend fun ruleCollectionType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ruleCollectionType = mapped
    }

    /**
     * @param value List of rules included in a rule collection.
     */
    @JvmName("ldwprruhdwaohnju")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param values List of rules included in a rule collection.
     */
    @JvmName("qsggyhaxqribyyqi")
    public suspend fun rules(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy