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

com.pulumi.gcp.compute.kotlin.inputs.RouterNatSubnetworkArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RouterNatSubnetworkArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property name Self-link of subnetwork to NAT
 * @property secondaryIpRangeNames List of the secondary ranges of the subnetwork that are allowed
 * to use NAT. This can be populated only if
 * `LIST_OF_SECONDARY_IP_RANGES` is one of the values in
 * sourceIpRangesToNat
 * @property sourceIpRangesToNats List of options for which source IPs in the subnetwork
 * should have NAT enabled. Supported values include:
 * `ALL_IP_RANGES`, `LIST_OF_SECONDARY_IP_RANGES`,
 * `PRIMARY_IP_RANGE`.
 */
public data class RouterNatSubnetworkArgs(
    public val name: Output,
    public val secondaryIpRangeNames: Output>? = null,
    public val sourceIpRangesToNats: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RouterNatSubnetworkArgs =
        com.pulumi.gcp.compute.inputs.RouterNatSubnetworkArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .secondaryIpRangeNames(secondaryIpRangeNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourceIpRangesToNats(
                sourceIpRangesToNats.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [RouterNatSubnetworkArgs].
 */
@PulumiTagMarker
public class RouterNatSubnetworkArgsBuilder internal constructor() {
    private var name: Output? = null

    private var secondaryIpRangeNames: Output>? = null

    private var sourceIpRangesToNats: Output>? = null

    /**
     * @param value Self-link of subnetwork to NAT
     */
    @JvmName("gmatkmyxapmvinpi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value List of the secondary ranges of the subnetwork that are allowed
     * to use NAT. This can be populated only if
     * `LIST_OF_SECONDARY_IP_RANGES` is one of the values in
     * sourceIpRangesToNat
     */
    @JvmName("wainwttvtkitcqcr")
    public suspend fun secondaryIpRangeNames(`value`: Output>) {
        this.secondaryIpRangeNames = value
    }

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

    /**
     * @param values List of the secondary ranges of the subnetwork that are allowed
     * to use NAT. This can be populated only if
     * `LIST_OF_SECONDARY_IP_RANGES` is one of the values in
     * sourceIpRangesToNat
     */
    @JvmName("jtdvaxgyxcvolrpy")
    public suspend fun secondaryIpRangeNames(values: List>) {
        this.secondaryIpRangeNames = Output.all(values)
    }

    /**
     * @param value List of options for which source IPs in the subnetwork
     * should have NAT enabled. Supported values include:
     * `ALL_IP_RANGES`, `LIST_OF_SECONDARY_IP_RANGES`,
     * `PRIMARY_IP_RANGE`.
     */
    @JvmName("biphrbswurxfmymd")
    public suspend fun sourceIpRangesToNats(`value`: Output>) {
        this.sourceIpRangesToNats = value
    }

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

    /**
     * @param values List of options for which source IPs in the subnetwork
     * should have NAT enabled. Supported values include:
     * `ALL_IP_RANGES`, `LIST_OF_SECONDARY_IP_RANGES`,
     * `PRIMARY_IP_RANGE`.
     */
    @JvmName("obsyqgqxwrohitxg")
    public suspend fun sourceIpRangesToNats(values: List>) {
        this.sourceIpRangesToNats = Output.all(values)
    }

    /**
     * @param value Self-link of subnetwork to NAT
     */
    @JvmName("fwajfbragyirtnco")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value List of the secondary ranges of the subnetwork that are allowed
     * to use NAT. This can be populated only if
     * `LIST_OF_SECONDARY_IP_RANGES` is one of the values in
     * sourceIpRangesToNat
     */
    @JvmName("krbwdnmrvgdsdwjr")
    public suspend fun secondaryIpRangeNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secondaryIpRangeNames = mapped
    }

    /**
     * @param values List of the secondary ranges of the subnetwork that are allowed
     * to use NAT. This can be populated only if
     * `LIST_OF_SECONDARY_IP_RANGES` is one of the values in
     * sourceIpRangesToNat
     */
    @JvmName("qwppaegrehhgnepl")
    public suspend fun secondaryIpRangeNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secondaryIpRangeNames = mapped
    }

    /**
     * @param value List of options for which source IPs in the subnetwork
     * should have NAT enabled. Supported values include:
     * `ALL_IP_RANGES`, `LIST_OF_SECONDARY_IP_RANGES`,
     * `PRIMARY_IP_RANGE`.
     */
    @JvmName("goxnivxnbnxnmgnu")
    public suspend fun sourceIpRangesToNats(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceIpRangesToNats = mapped
    }

    /**
     * @param values List of options for which source IPs in the subnetwork
     * should have NAT enabled. Supported values include:
     * `ALL_IP_RANGES`, `LIST_OF_SECONDARY_IP_RANGES`,
     * `PRIMARY_IP_RANGE`.
     */
    @JvmName("xlalfbbvmsaqndpi")
    public suspend fun sourceIpRangesToNats(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceIpRangesToNats = mapped
    }

    internal fun build(): RouterNatSubnetworkArgs = RouterNatSubnetworkArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        secondaryIpRangeNames = secondaryIpRangeNames,
        sourceIpRangesToNats = sourceIpRangesToNats ?: throw
            PulumiNullFieldException("sourceIpRangesToNats"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy