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

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: 6.15.0.0
Show newest version
@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 The destination IP address (including CIDR).
 * @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 Specifies the translated address.
 * @property translatedFqdn Specifies the translated FQDN.
 * > **NOTE:** Exactly one of `translated_address` and `translated_fqdn` should be set.
 * @property translatedPort Specifies the translated port.
 */
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("smseemndkdhqycey")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The destination IP address (including CIDR).
     */
    @JvmName("ridxuxrmdjdvvdmd")
    public suspend fun destinationAddress(`value`: Output) {
        this.destinationAddress = value
    }

    /**
     * @param value
     */
    @JvmName("cvwsskcnstsxlpxu")
    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("tmjjncsudqcfyjkq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

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

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

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

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

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

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

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

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

    /**
     * @param value Specifies the translated address.
     */
    @JvmName("gxnoexkjewxjbjsq")
    public suspend fun translatedAddress(`value`: Output) {
        this.translatedAddress = value
    }

    /**
     * @param value Specifies the translated FQDN.
     * > **NOTE:** Exactly one of `translated_address` and `translated_fqdn` should be set.
     */
    @JvmName("najxuhaknacfpkoa")
    public suspend fun translatedFqdn(`value`: Output) {
        this.translatedFqdn = value
    }

    /**
     * @param value Specifies the translated port.
     */
    @JvmName("uxmcnvquffcdudxx")
    public suspend fun translatedPort(`value`: Output) {
        this.translatedPort = value
    }

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

    /**
     * @param value The destination IP address (including CIDR).
     */
    @JvmName("pigciemkhjlxlyrd")
    public suspend fun destinationAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationAddress = mapped
    }

    /**
     * @param value
     */
    @JvmName("irbiqghkjmximngm")
    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("cijaiefvoxwhvivu")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

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

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

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

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

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

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

    /**
     * @param value Specifies the translated FQDN.
     * > **NOTE:** Exactly one of `translated_address` and `translated_fqdn` should be set.
     */
    @JvmName("irbhrgfkslwwjpja")
    public suspend fun translatedFqdn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.translatedFqdn = mapped
    }

    /**
     * @param value Specifies the translated port.
     */
    @JvmName("mfddgpelufjhkgwh")
    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