com.pulumi.googlenative.compute.v1.kotlin.inputs.RouterNatRuleActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.v1.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 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.
*/
public data class RouterNatRuleActionArgs(
public val sourceNatActiveIps: Output>? = null,
public val sourceNatDrainIps: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.v1.inputs.RouterNatRuleActionArgs =
com.pulumi.googlenative.compute.v1.inputs.RouterNatRuleActionArgs.builder()
.sourceNatActiveIps(sourceNatActiveIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.sourceNatDrainIps(sourceNatDrainIps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [RouterNatRuleActionArgs].
*/
@PulumiTagMarker
public class RouterNatRuleActionArgsBuilder internal constructor() {
private var sourceNatActiveIps: Output>? = null
private var sourceNatDrainIps: 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("yxpcfgjafxhqcrxn")
public suspend fun sourceNatActiveIps(`value`: Output>) {
this.sourceNatActiveIps = value
}
@JvmName("vaejihgrgkmpacwn")
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("fnhrpusmylhcebnc")
public suspend fun sourceNatActiveIps(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy