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

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

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

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

import com.pulumi.azure.network.inputs.FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgs.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

/**
 *
 * @property description
 * @property destinationAddress
 * @property destinationPorts
 * @property name The name which should be used for this Firewall Policy Rule Collection Group. Changing this forces a new Firewall Policy Rule Collection Group to be created.
 * @property protocols
 * @property sourceAddresses
 * @property sourceIpGroups
 * @property translatedAddress
 * @property translatedFqdn
 * @property translatedPort
 */
public data class FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgs(
    public val description: Output? = null,
    public val destinationAddress: Output? = null,
    public val destinationPorts: Output? = null,
    public val name: Output,
    public val protocols: Output>,
    public val sourceAddresses: Output>? = null,
    public val sourceIpGroups: Output>? = null,
    public val translatedAddress: Output? = null,
    public val translatedFqdn: Output? = null,
    public val translatedPort: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.network.inputs.FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgs =
        com.pulumi.azure.network.inputs.FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .destinationAddress(destinationAddress?.applyValue({ args0 -> args0 }))
            .destinationPorts(destinationPorts?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .protocols(protocols.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourceAddresses(sourceAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourceIpGroups(sourceIpGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .translatedAddress(translatedAddress?.applyValue({ args0 -> args0 }))
            .translatedFqdn(translatedFqdn?.applyValue({ args0 -> args0 }))
            .translatedPort(translatedPort.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgs].
 */
@PulumiTagMarker
public class FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgsBuilder internal
constructor() {
    private var description: Output? = null

    private var destinationAddress: Output? = null

    private var destinationPorts: Output? = null

    private var name: Output? = null

    private var protocols: Output>? = null

    private var sourceAddresses: Output>? = null

    private var sourceIpGroups: Output>? = null

    private var translatedAddress: Output? = null

    private var translatedFqdn: Output? = null

    private var translatedPort: Output? = null

    /**
     * @param value
     */
    @JvmName("cjmbhwxdmcfrdmkv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value
     */
    @JvmName("soqkveswwlykvldw")
    public suspend fun destinationAddress(`value`: Output) {
        this.destinationAddress = value
    }

    /**
     * @param value
     */
    @JvmName("utrxglawhhiumith")
    public suspend fun destinationPorts(`value`: Output) {
        this.destinationPorts = value
    }

    /**
     * @param value The name which should be used for this Firewall Policy Rule Collection Group. Changing this forces a new Firewall Policy Rule Collection Group to be created.
     */
    @JvmName("nxpfgcqegweuruwm")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("xrmoeisasilfrepo")
    public suspend fun protocols(`value`: Output>) {
        this.protocols = value
    }

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

    /**
     * @param values
     */
    @JvmName("utfnvkytjuyehgfb")
    public suspend fun protocols(values: List>) {
        this.protocols = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("dayfvseipttfpixx")
    public suspend fun sourceAddresses(`value`: Output>) {
        this.sourceAddresses = value
    }

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

    /**
     * @param values
     */
    @JvmName("lykabwymdaelktkv")
    public suspend fun sourceAddresses(values: List>) {
        this.sourceAddresses = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("fwjnhsbksevyjyfu")
    public suspend fun sourceIpGroups(`value`: Output>) {
        this.sourceIpGroups = value
    }

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

    /**
     * @param values
     */
    @JvmName("cgyjxngyftpqxioq")
    public suspend fun sourceIpGroups(values: List>) {
        this.sourceIpGroups = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("okfckglwpbmgkiae")
    public suspend fun translatedAddress(`value`: Output) {
        this.translatedAddress = value
    }

    /**
     * @param value
     */
    @JvmName("dsmsiyobohmhfmdx")
    public suspend fun translatedFqdn(`value`: Output) {
        this.translatedFqdn = value
    }

    /**
     * @param value
     */
    @JvmName("mjkdoicnkirgoqpp")
    public suspend fun translatedPort(`value`: Output) {
        this.translatedPort = value
    }

    /**
     * @param value
     */
    @JvmName("ngtuyumecdnsqfbp")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value
     */
    @JvmName("vddmbssvkjbvfxpn")
    public suspend fun destinationAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationAddress = mapped
    }

    /**
     * @param value
     */
    @JvmName("loqbmfopfqoundmt")
    public suspend fun destinationPorts(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationPorts = mapped
    }

    /**
     * @param value The name which should be used for this Firewall Policy Rule Collection Group. Changing this forces a new Firewall Policy Rule Collection Group to be created.
     */
    @JvmName("fgaljaapascvqcbv")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value
     */
    @JvmName("plngkkxapfkslmsr")
    public suspend fun protocols(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocols = mapped
    }

    /**
     * @param values
     */
    @JvmName("kpkaotswkbehmmrs")
    public suspend fun protocols(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocols = mapped
    }

    /**
     * @param value
     */
    @JvmName("qmfotluvejifnxxw")
    public suspend fun sourceAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceAddresses = mapped
    }

    /**
     * @param values
     */
    @JvmName("qchrsfyexlhmtrdg")
    public suspend fun sourceAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceAddresses = mapped
    }

    /**
     * @param value
     */
    @JvmName("heknprixuunkchte")
    public suspend fun sourceIpGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceIpGroups = mapped
    }

    /**
     * @param values
     */
    @JvmName("tsbvpphcregttuse")
    public suspend fun sourceIpGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceIpGroups = mapped
    }

    /**
     * @param value
     */
    @JvmName("wqilpbnupkvgridq")
    public suspend fun translatedAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.translatedAddress = mapped
    }

    /**
     * @param value
     */
    @JvmName("wyptuwyptuxkwjnw")
    public suspend fun translatedFqdn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.translatedFqdn = mapped
    }

    /**
     * @param value
     */
    @JvmName("weimorkqwavpcfoh")
    public suspend fun translatedPort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.translatedPort = mapped
    }

    internal fun build(): FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgs =
        FirewallPolicyRuleCollectionGroupNatRuleCollectionRuleArgs(
            description = description,
            destinationAddress = destinationAddress,
            destinationPorts = destinationPorts,
            name = name ?: throw PulumiNullFieldException("name"),
            protocols = protocols ?: throw PulumiNullFieldException("protocols"),
            sourceAddresses = sourceAddresses,
            sourceIpGroups = sourceIpGroups,
            translatedAddress = translatedAddress,
            translatedFqdn = translatedFqdn,
            translatedPort = translatedPort ?: throw PulumiNullFieldException("translatedPort"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy