com.pulumi.gcp.compute.kotlin.inputs.RouterNatSubnetworkArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy