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

com.pulumi.azure.network.kotlin.inputs.VnpGatewayNatRuleExternalMappingArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.VnpGatewayNatRuleExternalMappingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property addressSpace The string CIDR representing the address space for the VPN Gateway Nat Rule external mapping.
 * @property portRange The single port range for the VPN Gateway Nat Rule external mapping.
 */
public data class VnpGatewayNatRuleExternalMappingArgs(
    public val addressSpace: Output,
    public val portRange: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.VnpGatewayNatRuleExternalMappingArgs =
        com.pulumi.azure.network.inputs.VnpGatewayNatRuleExternalMappingArgs.builder()
            .addressSpace(addressSpace.applyValue({ args0 -> args0 }))
            .portRange(portRange?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VnpGatewayNatRuleExternalMappingArgs].
 */
@PulumiTagMarker
public class VnpGatewayNatRuleExternalMappingArgsBuilder internal constructor() {
    private var addressSpace: Output? = null

    private var portRange: Output? = null

    /**
     * @param value The string CIDR representing the address space for the VPN Gateway Nat Rule external mapping.
     */
    @JvmName("wfrvlvgvrmlcdsmb")
    public suspend fun addressSpace(`value`: Output) {
        this.addressSpace = value
    }

    /**
     * @param value The single port range for the VPN Gateway Nat Rule external mapping.
     */
    @JvmName("wmgfgwokodqkcdft")
    public suspend fun portRange(`value`: Output) {
        this.portRange = value
    }

    /**
     * @param value The string CIDR representing the address space for the VPN Gateway Nat Rule external mapping.
     */
    @JvmName("vtihaimwgntwemcq")
    public suspend fun addressSpace(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressSpace = mapped
    }

    /**
     * @param value The single port range for the VPN Gateway Nat Rule external mapping.
     */
    @JvmName("txhoqoltrclhvstu")
    public suspend fun portRange(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.portRange = mapped
    }

    internal fun build(): VnpGatewayNatRuleExternalMappingArgs = VnpGatewayNatRuleExternalMappingArgs(
        addressSpace = addressSpace ?: throw PulumiNullFieldException("addressSpace"),
        portRange = portRange,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy