![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.network.kotlin.inputs.VpnGatewayNatRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.VpnGatewayNatRuleArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.VpnNatRuleMode
import com.pulumi.azurenative.network.kotlin.enums.VpnNatRuleType
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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* VpnGatewayNatRule Resource.
* @property externalMappings The private IP address external mapping for NAT.
* @property id Resource ID.
* @property internalMappings The private IP address internal mapping for NAT.
* @property ipConfigurationId The IP Configuration ID this NAT rule applies to.
* @property mode The Source NAT direction of a VPN NAT.
* @property name The name of the resource that is unique within a resource group. This name can be used to access the resource.
* @property type The type of NAT rule for VPN NAT.
*/
public data class VpnGatewayNatRuleArgs(
public val externalMappings: Output>? = null,
public val id: Output? = null,
public val internalMappings: Output>? = null,
public val ipConfigurationId: Output? = null,
public val mode: Output>? = null,
public val name: Output? = null,
public val type: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.VpnGatewayNatRuleArgs =
com.pulumi.azurenative.network.inputs.VpnGatewayNatRuleArgs.builder()
.externalMappings(
externalMappings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.id(id?.applyValue({ args0 -> args0 }))
.internalMappings(
internalMappings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.ipConfigurationId(ipConfigurationId?.applyValue({ args0 -> args0 }))
.mode(
mode?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.type(
type?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [VpnGatewayNatRuleArgs].
*/
@PulumiTagMarker
public class VpnGatewayNatRuleArgsBuilder internal constructor() {
private var externalMappings: Output>? = null
private var id: Output? = null
private var internalMappings: Output>? = null
private var ipConfigurationId: Output? = null
private var mode: Output>? = null
private var name: Output? = null
private var type: Output>? = null
/**
* @param value The private IP address external mapping for NAT.
*/
@JvmName("ctlkojaebonlyewn")
public suspend fun externalMappings(`value`: Output>) {
this.externalMappings = value
}
@JvmName("sgtggvcokehslglv")
public suspend fun externalMappings(vararg values: Output) {
this.externalMappings = Output.all(values.asList())
}
/**
* @param values The private IP address external mapping for NAT.
*/
@JvmName("hsjmllodpcqfyjwi")
public suspend fun externalMappings(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy