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

com.pulumi.gcp.compute.kotlin.inputs.RouterNatRuleActionArgs.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.RouterNatRuleActionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property sourceNatActiveIps A list of URLs of the IP resources used for this NAT rule.
 * These IP addresses must be valid static external IP addresses assigned to the project.
 * This field is used for public NAT.
 * @property sourceNatActiveRanges A list of URLs of the subnetworks used as source ranges for this NAT Rule.
 * These subnetworks must have purpose set to PRIVATE_NAT.
 * This field is used for private NAT.
 * @property sourceNatDrainIps A list of URLs of the IP resources to be drained.
 * These IPs must be valid static external IPs that have been assigned to the NAT.
 * These IPs should be used for updating/patching a NAT rule only.
 * This field is used for public NAT.
 * @property sourceNatDrainRanges A list of URLs of subnetworks representing source ranges to be drained.
 * This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule.
 * This field is used for private NAT.
 */
public data class RouterNatRuleActionArgs(
    public val sourceNatActiveIps: Output>? = null,
    public val sourceNatActiveRanges: Output>? = null,
    public val sourceNatDrainIps: Output>? = null,
    public val sourceNatDrainRanges: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RouterNatRuleActionArgs =
        com.pulumi.gcp.compute.inputs.RouterNatRuleActionArgs.builder()
            .sourceNatActiveIps(sourceNatActiveIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourceNatActiveRanges(sourceNatActiveRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourceNatDrainIps(sourceNatDrainIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourceNatDrainRanges(
                sourceNatDrainRanges?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var sourceNatActiveRanges: Output>? = null

    private var sourceNatDrainIps: Output>? = null

    private var sourceNatDrainRanges: Output>? = null

    /**
     * @param value A list of URLs of the IP resources used for this NAT rule.
     * These IP addresses must be valid static external IP addresses assigned to the project.
     * This field is used for public NAT.
     */
    @JvmName("lfbjxfdlskferrjg")
    public suspend fun sourceNatActiveIps(`value`: Output>) {
        this.sourceNatActiveIps = value
    }

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

    /**
     * @param values A list of URLs of the IP resources used for this NAT rule.
     * These IP addresses must be valid static external IP addresses assigned to the project.
     * This field is used for public NAT.
     */
    @JvmName("xlvibegwyimlkhii")
    public suspend fun sourceNatActiveIps(values: List>) {
        this.sourceNatActiveIps = Output.all(values)
    }

    /**
     * @param value A list of URLs of the subnetworks used as source ranges for this NAT Rule.
     * These subnetworks must have purpose set to PRIVATE_NAT.
     * This field is used for private NAT.
     */
    @JvmName("qclpqgswmnosjwqs")
    public suspend fun sourceNatActiveRanges(`value`: Output>) {
        this.sourceNatActiveRanges = value
    }

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

    /**
     * @param values A list of URLs of the subnetworks used as source ranges for this NAT Rule.
     * These subnetworks must have purpose set to PRIVATE_NAT.
     * This field is used for private NAT.
     */
    @JvmName("tabndvtevyevjvix")
    public suspend fun sourceNatActiveRanges(values: List>) {
        this.sourceNatActiveRanges = Output.all(values)
    }

    /**
     * @param value A list of URLs of the IP resources to be drained.
     * These IPs must be valid static external IPs that have been assigned to the NAT.
     * These IPs should be used for updating/patching a NAT rule only.
     * This field is used for public NAT.
     */
    @JvmName("wntpmtujtlipkbwb")
    public suspend fun sourceNatDrainIps(`value`: Output>) {
        this.sourceNatDrainIps = value
    }

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

    /**
     * @param values A list of URLs of the IP resources to be drained.
     * These IPs must be valid static external IPs that have been assigned to the NAT.
     * These IPs should be used for updating/patching a NAT rule only.
     * This field is used for public NAT.
     */
    @JvmName("kvhfldpctnvmxbac")
    public suspend fun sourceNatDrainIps(values: List>) {
        this.sourceNatDrainIps = Output.all(values)
    }

    /**
     * @param value A list of URLs of subnetworks representing source ranges to be drained.
     * This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule.
     * This field is used for private NAT.
     */
    @JvmName("paayliiryrtjdwgu")
    public suspend fun sourceNatDrainRanges(`value`: Output>) {
        this.sourceNatDrainRanges = value
    }

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

    /**
     * @param values A list of URLs of subnetworks representing source ranges to be drained.
     * This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule.
     * This field is used for private NAT.
     */
    @JvmName("wylpkrcqhkpqjmrt")
    public suspend fun sourceNatDrainRanges(values: List>) {
        this.sourceNatDrainRanges = Output.all(values)
    }

    /**
     * @param value A list of URLs of the IP resources used for this NAT rule.
     * These IP addresses must be valid static external IP addresses assigned to the project.
     * This field is used for public NAT.
     */
    @JvmName("twcciwryyglimxid")
    public suspend fun sourceNatActiveIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceNatActiveIps = mapped
    }

    /**
     * @param values A list of URLs of the IP resources used for this NAT rule.
     * These IP addresses must be valid static external IP addresses assigned to the project.
     * This field is used for public NAT.
     */
    @JvmName("ujdimxrxvklmlswm")
    public suspend fun sourceNatActiveIps(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceNatActiveIps = mapped
    }

    /**
     * @param value A list of URLs of the subnetworks used as source ranges for this NAT Rule.
     * These subnetworks must have purpose set to PRIVATE_NAT.
     * This field is used for private NAT.
     */
    @JvmName("nwwukdpqjrmwveuu")
    public suspend fun sourceNatActiveRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceNatActiveRanges = mapped
    }

    /**
     * @param values A list of URLs of the subnetworks used as source ranges for this NAT Rule.
     * These subnetworks must have purpose set to PRIVATE_NAT.
     * This field is used for private NAT.
     */
    @JvmName("ihtgharasrmvpban")
    public suspend fun sourceNatActiveRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceNatActiveRanges = mapped
    }

    /**
     * @param value A list of URLs of the IP resources to be drained.
     * These IPs must be valid static external IPs that have been assigned to the NAT.
     * These IPs should be used for updating/patching a NAT rule only.
     * This field is used for public NAT.
     */
    @JvmName("ceunyixtnsnoaqgw")
    public suspend fun sourceNatDrainIps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceNatDrainIps = mapped
    }

    /**
     * @param values A list of URLs of the IP resources to be drained.
     * These IPs must be valid static external IPs that have been assigned to the NAT.
     * These IPs should be used for updating/patching a NAT rule only.
     * This field is used for public NAT.
     */
    @JvmName("hmdffoumudxdbuaf")
    public suspend fun sourceNatDrainIps(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceNatDrainIps = mapped
    }

    /**
     * @param value A list of URLs of subnetworks representing source ranges to be drained.
     * This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule.
     * This field is used for private NAT.
     */
    @JvmName("nphuekmrtqpbxrys")
    public suspend fun sourceNatDrainRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceNatDrainRanges = mapped
    }

    /**
     * @param values A list of URLs of subnetworks representing source ranges to be drained.
     * This is only supported on patch/update, and these subnetworks must have previously been used as active ranges in this NAT Rule.
     * This field is used for private NAT.
     */
    @JvmName("lavoxposnkvskoor")
    public suspend fun sourceNatDrainRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceNatDrainRanges = mapped
    }

    internal fun build(): RouterNatRuleActionArgs = RouterNatRuleActionArgs(
        sourceNatActiveIps = sourceNatActiveIps,
        sourceNatActiveRanges = sourceNatActiveRanges,
        sourceNatDrainIps = sourceNatDrainIps,
        sourceNatDrainRanges = sourceNatDrainRanges,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy