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

com.pulumi.azurenative.cloudngfw.kotlin.inputs.NetworkProfileArgs.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.cloudngfw.kotlin.inputs

import com.pulumi.azurenative.cloudngfw.inputs.NetworkProfileArgs.builder
import com.pulumi.azurenative.cloudngfw.kotlin.enums.EgressNat
import com.pulumi.azurenative.cloudngfw.kotlin.enums.NetworkType
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Network settings for Firewall
 * @property egressNatIp Egress nat IP to use
 * @property enableEgressNat Enable egress NAT, enabled by default
 * @property networkType vnet or vwan, cannot be updated
 * @property publicIps List of IPs associated with the Firewall
 * @property trustedRanges Non-RFC 1918 address
 * @property vnetConfiguration Vnet configurations
 * @property vwanConfiguration Vwan configurations
 */
public data class NetworkProfileArgs(
    public val egressNatIp: Output>? = null,
    public val enableEgressNat: Output>,
    public val networkType: Output>,
    public val publicIps: Output>,
    public val trustedRanges: Output>? = null,
    public val vnetConfiguration: Output? = null,
    public val vwanConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cloudngfw.inputs.NetworkProfileArgs =
        com.pulumi.azurenative.cloudngfw.inputs.NetworkProfileArgs.builder()
            .egressNatIp(
                egressNatIp?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .enableEgressNat(
                enableEgressNat.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .networkType(
                networkType.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .publicIps(
                publicIps.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .trustedRanges(trustedRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .vnetConfiguration(vnetConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vwanConfiguration(
                vwanConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var enableEgressNat: Output>? = null

    private var networkType: Output>? = null

    private var publicIps: Output>? = null

    private var trustedRanges: Output>? = null

    private var vnetConfiguration: Output? = null

    private var vwanConfiguration: Output? = null

    /**
     * @param value Egress nat IP to use
     */
    @JvmName("bhgwlnckmuhjjrvp")
    public suspend fun egressNatIp(`value`: Output>) {
        this.egressNatIp = value
    }

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

    /**
     * @param values Egress nat IP to use
     */
    @JvmName("palmhdpffgtmxarn")
    public suspend fun egressNatIp(values: List>) {
        this.egressNatIp = Output.all(values)
    }

    /**
     * @param value Enable egress NAT, enabled by default
     */
    @JvmName("ucjgcvswkenmvfqv")
    public suspend fun enableEgressNat(`value`: Output>) {
        this.enableEgressNat = value
    }

    /**
     * @param value vnet or vwan, cannot be updated
     */
    @JvmName("fiotelthwdcbshew")
    public suspend fun networkType(`value`: Output>) {
        this.networkType = value
    }

    /**
     * @param value List of IPs associated with the Firewall
     */
    @JvmName("vsswslvuukiqfxnf")
    public suspend fun publicIps(`value`: Output>) {
        this.publicIps = value
    }

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

    /**
     * @param values List of IPs associated with the Firewall
     */
    @JvmName("bybpatborlrebfsl")
    public suspend fun publicIps(values: List>) {
        this.publicIps = Output.all(values)
    }

    /**
     * @param value Non-RFC 1918 address
     */
    @JvmName("rrfqvlwelmegkvte")
    public suspend fun trustedRanges(`value`: Output>) {
        this.trustedRanges = value
    }

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

    /**
     * @param values Non-RFC 1918 address
     */
    @JvmName("njmrhynjvccvcanl")
    public suspend fun trustedRanges(values: List>) {
        this.trustedRanges = Output.all(values)
    }

    /**
     * @param value Vnet configurations
     */
    @JvmName("nrdfhrwgthlpgsey")
    public suspend fun vnetConfiguration(`value`: Output) {
        this.vnetConfiguration = value
    }

    /**
     * @param value Vwan configurations
     */
    @JvmName("gshhhvrvhmknlbou")
    public suspend fun vwanConfiguration(`value`: Output) {
        this.vwanConfiguration = value
    }

    /**
     * @param value Egress nat IP to use
     */
    @JvmName("fnmgleraaigiogwa")
    public suspend fun egressNatIp(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressNatIp = mapped
    }

    /**
     * @param argument Egress nat IP to use
     */
    @JvmName("tibdqiayltjcuggs")
    public suspend fun egressNatIp(argument: List Unit>) {
        val toBeMapped = argument.toList().map { IPAddressArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.egressNatIp = mapped
    }

    /**
     * @param argument Egress nat IP to use
     */
    @JvmName("kfmqolwottwoivac")
    public suspend fun egressNatIp(vararg argument: suspend IPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { IPAddressArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.egressNatIp = mapped
    }

    /**
     * @param argument Egress nat IP to use
     */
    @JvmName("vnwqiadylwqyotwq")
    public suspend fun egressNatIp(argument: suspend IPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IPAddressArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.egressNatIp = mapped
    }

    /**
     * @param values Egress nat IP to use
     */
    @JvmName("ywvvbdgojghjnsop")
    public suspend fun egressNatIp(vararg values: IPAddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.egressNatIp = mapped
    }

    /**
     * @param value Enable egress NAT, enabled by default
     */
    @JvmName("eysgwodrxxmfpkpo")
    public suspend fun enableEgressNat(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableEgressNat = mapped
    }

    /**
     * @param value Enable egress NAT, enabled by default
     */
    @JvmName("qwvlqdeuiburbdfg")
    public fun enableEgressNat(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableEgressNat = mapped
    }

    /**
     * @param value Enable egress NAT, enabled by default
     */
    @JvmName("aprfrfeduphaxvng")
    public fun enableEgressNat(`value`: EgressNat) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableEgressNat = mapped
    }

    /**
     * @param value vnet or vwan, cannot be updated
     */
    @JvmName("ntrnmncuolmsqwxb")
    public suspend fun networkType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkType = mapped
    }

    /**
     * @param value vnet or vwan, cannot be updated
     */
    @JvmName("ubxrhqlaqyeelepd")
    public fun networkType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkType = mapped
    }

    /**
     * @param value vnet or vwan, cannot be updated
     */
    @JvmName("smktkaxexgyiwmml")
    public fun networkType(`value`: NetworkType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkType = mapped
    }

    /**
     * @param value List of IPs associated with the Firewall
     */
    @JvmName("lhmbilqnggcyrscp")
    public suspend fun publicIps(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIps = mapped
    }

    /**
     * @param argument List of IPs associated with the Firewall
     */
    @JvmName("suvbotycgjukkuym")
    public suspend fun publicIps(argument: List Unit>) {
        val toBeMapped = argument.toList().map { IPAddressArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.publicIps = mapped
    }

    /**
     * @param argument List of IPs associated with the Firewall
     */
    @JvmName("igpxqnvkwwsypgqi")
    public suspend fun publicIps(vararg argument: suspend IPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { IPAddressArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.publicIps = mapped
    }

    /**
     * @param argument List of IPs associated with the Firewall
     */
    @JvmName("dyqgubwasyidscrx")
    public suspend fun publicIps(argument: suspend IPAddressArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IPAddressArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.publicIps = mapped
    }

    /**
     * @param values List of IPs associated with the Firewall
     */
    @JvmName("apymjgufynjrsfpw")
    public suspend fun publicIps(vararg values: IPAddressArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIps = mapped
    }

    /**
     * @param value Non-RFC 1918 address
     */
    @JvmName("bldqtcmqmtughnyv")
    public suspend fun trustedRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedRanges = mapped
    }

    /**
     * @param values Non-RFC 1918 address
     */
    @JvmName("forongbsgrypgtmg")
    public suspend fun trustedRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trustedRanges = mapped
    }

    /**
     * @param value Vnet configurations
     */
    @JvmName("pqrasguanmmobvcr")
    public suspend fun vnetConfiguration(`value`: VnetConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vnetConfiguration = mapped
    }

    /**
     * @param argument Vnet configurations
     */
    @JvmName("wnlebjrhgqdnusyu")
    public suspend fun vnetConfiguration(argument: suspend VnetConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = VnetConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vnetConfiguration = mapped
    }

    /**
     * @param value Vwan configurations
     */
    @JvmName("vnxoqdxapctimwcn")
    public suspend fun vwanConfiguration(`value`: VwanConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vwanConfiguration = mapped
    }

    /**
     * @param argument Vwan configurations
     */
    @JvmName("eietqvgiekyngyxv")
    public suspend fun vwanConfiguration(argument: suspend VwanConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = VwanConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vwanConfiguration = mapped
    }

    internal fun build(): NetworkProfileArgs = NetworkProfileArgs(
        egressNatIp = egressNatIp,
        enableEgressNat = enableEgressNat ?: throw PulumiNullFieldException("enableEgressNat"),
        networkType = networkType ?: throw PulumiNullFieldException("networkType"),
        publicIps = publicIps ?: throw PulumiNullFieldException("publicIps"),
        trustedRanges = trustedRanges,
        vnetConfiguration = vnetConfiguration,
        vwanConfiguration = vwanConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy