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

com.pulumi.azurenative.network.kotlin.inputs.FirewallPolicySNATArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azurenative.network.inputs.FirewallPolicySNATArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.AutoLearnPrivateRangesMode
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The private IP addresses/IP ranges to which traffic will not be SNAT.
 * @property autoLearnPrivateRanges The operation mode for automatically learning private ranges to not be SNAT
 * @property privateRanges List of private IP addresses/IP address ranges to not be SNAT.
 */
public data class FirewallPolicySNATArgs(
    public val autoLearnPrivateRanges: Output>? = null,
    public val privateRanges: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.FirewallPolicySNATArgs =
        com.pulumi.azurenative.network.inputs.FirewallPolicySNATArgs.builder()
            .autoLearnPrivateRanges(
                autoLearnPrivateRanges?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .privateRanges(privateRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [FirewallPolicySNATArgs].
 */
@PulumiTagMarker
public class FirewallPolicySNATArgsBuilder internal constructor() {
    private var autoLearnPrivateRanges: Output>? = null

    private var privateRanges: Output>? = null

    /**
     * @param value The operation mode for automatically learning private ranges to not be SNAT
     */
    @JvmName("urtnaewrtvwumeqr")
    public suspend fun autoLearnPrivateRanges(`value`: Output>) {
        this.autoLearnPrivateRanges = value
    }

    /**
     * @param value List of private IP addresses/IP address ranges to not be SNAT.
     */
    @JvmName("loeksaryaelhbrhc")
    public suspend fun privateRanges(`value`: Output>) {
        this.privateRanges = value
    }

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

    /**
     * @param values List of private IP addresses/IP address ranges to not be SNAT.
     */
    @JvmName("ilondcghigbudbhg")
    public suspend fun privateRanges(values: List>) {
        this.privateRanges = Output.all(values)
    }

    /**
     * @param value The operation mode for automatically learning private ranges to not be SNAT
     */
    @JvmName("ewspfvttllhmanux")
    public suspend fun autoLearnPrivateRanges(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoLearnPrivateRanges = mapped
    }

    /**
     * @param value The operation mode for automatically learning private ranges to not be SNAT
     */
    @JvmName("khkewvmjttfrryed")
    public fun autoLearnPrivateRanges(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.autoLearnPrivateRanges = mapped
    }

    /**
     * @param value The operation mode for automatically learning private ranges to not be SNAT
     */
    @JvmName("kamcsglhbnewpptb")
    public fun autoLearnPrivateRanges(`value`: AutoLearnPrivateRangesMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.autoLearnPrivateRanges = mapped
    }

    /**
     * @param value List of private IP addresses/IP address ranges to not be SNAT.
     */
    @JvmName("yirynfwvnwkorjgk")
    public suspend fun privateRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateRanges = mapped
    }

    /**
     * @param values List of private IP addresses/IP address ranges to not be SNAT.
     */
    @JvmName("dsqjuhyvuhoblxob")
    public suspend fun privateRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateRanges = mapped
    }

    internal fun build(): FirewallPolicySNATArgs = FirewallPolicySNATArgs(
        autoLearnPrivateRanges = autoLearnPrivateRanges,
        privateRanges = privateRanges,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy