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

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

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

import com.pulumi.azure.network.inputs.PointToPointVpnGatewayConnectionConfigurationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property internetSecurityEnabled Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to `false`.
 * @property name The Name which should be used for this Connection Configuration.
 * @property route A `route` block as defined below.
 * @property vpnClientAddressPool A `vpn_client_address_pool` block as defined below.
 */
public data class PointToPointVpnGatewayConnectionConfigurationArgs(
    public val internetSecurityEnabled: Output? = null,
    public val name: Output,
    public val route: Output? = null,
    public val vpnClientAddressPool: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.PointToPointVpnGatewayConnectionConfigurationArgs =
        com.pulumi.azure.network.inputs.PointToPointVpnGatewayConnectionConfigurationArgs.builder()
            .internetSecurityEnabled(internetSecurityEnabled?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .route(route?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .vpnClientAddressPool(
                vpnClientAddressPool.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PointToPointVpnGatewayConnectionConfigurationArgs].
 */
@PulumiTagMarker
public class PointToPointVpnGatewayConnectionConfigurationArgsBuilder internal constructor() {
    private var internetSecurityEnabled: Output? = null

    private var name: Output? = null

    private var route: Output? = null

    private var vpnClientAddressPool:
        Output? = null

    /**
     * @param value Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to `false`.
     */
    @JvmName("ctgtictrarxlujqh")
    public suspend fun internetSecurityEnabled(`value`: Output) {
        this.internetSecurityEnabled = value
    }

    /**
     * @param value The Name which should be used for this Connection Configuration.
     */
    @JvmName("ougulmgkcyqqehtk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `route` block as defined below.
     */
    @JvmName("jwienfupcsarywhk")
    public suspend fun route(`value`: Output) {
        this.route = value
    }

    /**
     * @param value A `vpn_client_address_pool` block as defined below.
     */
    @JvmName("ygihdbeuijtcvcgt")
    public suspend fun vpnClientAddressPool(`value`: Output) {
        this.vpnClientAddressPool = value
    }

    /**
     * @param value Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to `false`.
     */
    @JvmName("lkcgymaeqpsguqek")
    public suspend fun internetSecurityEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.internetSecurityEnabled = mapped
    }

    /**
     * @param value The Name which should be used for this Connection Configuration.
     */
    @JvmName("yybcynkhgpuxuccm")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A `route` block as defined below.
     */
    @JvmName("qgcrxoxvonnakmqb")
    public suspend fun route(`value`: PointToPointVpnGatewayConnectionConfigurationRouteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.route = mapped
    }

    /**
     * @param argument A `route` block as defined below.
     */
    @JvmName("wdkhrgvwdsewlocx")
    public suspend fun route(argument: suspend PointToPointVpnGatewayConnectionConfigurationRouteArgsBuilder.() -> Unit) {
        val toBeMapped = PointToPointVpnGatewayConnectionConfigurationRouteArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.route = mapped
    }

    /**
     * @param value A `vpn_client_address_pool` block as defined below.
     */
    @JvmName("xrqyihcajpfgrgue")
    public suspend fun vpnClientAddressPool(`value`: PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpnClientAddressPool = mapped
    }

    /**
     * @param argument A `vpn_client_address_pool` block as defined below.
     */
    @JvmName("djptvowkgotvdjjx")
    public suspend fun vpnClientAddressPool(argument: suspend PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgsBuilder.() -> Unit) {
        val toBeMapped =
            PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.vpnClientAddressPool = mapped
    }

    internal fun build(): PointToPointVpnGatewayConnectionConfigurationArgs =
        PointToPointVpnGatewayConnectionConfigurationArgs(
            internetSecurityEnabled = internetSecurityEnabled,
            name = name ?: throw PulumiNullFieldException("name"),
            route = route,
            vpnClientAddressPool = vpnClientAddressPool ?: throw
                PulumiNullFieldException("vpnClientAddressPool"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy