com.pulumi.azure.network.kotlin.inputs.VpnSiteLinkArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.inputs
import com.pulumi.azure.network.inputs.VpnSiteLinkArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property bgp A `bgp` block as defined above.
* > **NOTE:** The `link.bgp` has to be set when the `address_cidrs` isn't specified.
* @property fqdn The FQDN of this VPN Site Link.
* @property id The ID of the VPN Site Link.
* @property ipAddress The IP address of this VPN Site Link.
* > **NOTE:** Either `fqdn` or `ip_address` should be specified.
* @property name The name which should be used for this VPN Site Link.
* @property providerName The name of the physical link at the VPN Site. Example: `ATT`, `Verizon`.
* @property speedInMbps The speed of the VPN device at the branch location in unit of mbps. Defaults to `0`.
*/
public data class VpnSiteLinkArgs(
public val bgp: Output? = null,
public val fqdn: Output? = null,
public val id: Output? = null,
public val ipAddress: Output? = null,
public val name: Output,
public val providerName: Output? = null,
public val speedInMbps: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.inputs.VpnSiteLinkArgs =
com.pulumi.azure.network.inputs.VpnSiteLinkArgs.builder()
.bgp(bgp?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.fqdn(fqdn?.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.providerName(providerName?.applyValue({ args0 -> args0 }))
.speedInMbps(speedInMbps?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VpnSiteLinkArgs].
*/
@PulumiTagMarker
public class VpnSiteLinkArgsBuilder internal constructor() {
private var bgp: Output? = null
private var fqdn: Output? = null
private var id: Output? = null
private var ipAddress: Output? = null
private var name: Output? = null
private var providerName: Output? = null
private var speedInMbps: Output? = null
/**
* @param value A `bgp` block as defined above.
* > **NOTE:** The `link.bgp` has to be set when the `address_cidrs` isn't specified.
*/
@JvmName("wftqhfbhtujcyrwk")
public suspend fun bgp(`value`: Output) {
this.bgp = value
}
/**
* @param value The FQDN of this VPN Site Link.
*/
@JvmName("mxqnvghnsmaydlbq")
public suspend fun fqdn(`value`: Output) {
this.fqdn = value
}
/**
* @param value The ID of the VPN Site Link.
*/
@JvmName("hfdhdviwhxhmpxxf")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value The IP address of this VPN Site Link.
* > **NOTE:** Either `fqdn` or `ip_address` should be specified.
*/
@JvmName("jwvnaweyyjsvplai")
public suspend fun ipAddress(`value`: Output) {
this.ipAddress = value
}
/**
* @param value The name which should be used for this VPN Site Link.
*/
@JvmName("cjeyinsueuuafcyw")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the physical link at the VPN Site. Example: `ATT`, `Verizon`.
*/
@JvmName("avnybnaopponiasi")
public suspend fun providerName(`value`: Output) {
this.providerName = value
}
/**
* @param value The speed of the VPN device at the branch location in unit of mbps. Defaults to `0`.
*/
@JvmName("exndfxgpbbiefodn")
public suspend fun speedInMbps(`value`: Output) {
this.speedInMbps = value
}
/**
* @param value A `bgp` block as defined above.
* > **NOTE:** The `link.bgp` has to be set when the `address_cidrs` isn't specified.
*/
@JvmName("rqhxytbgkxvndjrq")
public suspend fun bgp(`value`: VpnSiteLinkBgpArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bgp = mapped
}
/**
* @param argument A `bgp` block as defined above.
* > **NOTE:** The `link.bgp` has to be set when the `address_cidrs` isn't specified.
*/
@JvmName("aesabxosmkjrplet")
public suspend fun bgp(argument: suspend VpnSiteLinkBgpArgsBuilder.() -> Unit) {
val toBeMapped = VpnSiteLinkBgpArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.bgp = mapped
}
/**
* @param value The FQDN of this VPN Site Link.
*/
@JvmName("ndqoxdhnqyvpyhgv")
public suspend fun fqdn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fqdn = mapped
}
/**
* @param value The ID of the VPN Site Link.
*/
@JvmName("jpffjemknerdbprq")
public suspend fun id(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value The IP address of this VPN Site Link.
* > **NOTE:** Either `fqdn` or `ip_address` should be specified.
*/
@JvmName("stuvnnoenucixhyd")
public suspend fun ipAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipAddress = mapped
}
/**
* @param value The name which should be used for this VPN Site Link.
*/
@JvmName("scxeyjlekjxkfwvm")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the physical link at the VPN Site. Example: `ATT`, `Verizon`.
*/
@JvmName("envxaubmkjwshcxa")
public suspend fun providerName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.providerName = mapped
}
/**
* @param value The speed of the VPN device at the branch location in unit of mbps. Defaults to `0`.
*/
@JvmName("fdnialcpnwrtwcgm")
public suspend fun speedInMbps(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.speedInMbps = mapped
}
internal fun build(): VpnSiteLinkArgs = VpnSiteLinkArgs(
bgp = bgp,
fqdn = fqdn,
id = id,
ipAddress = ipAddress,
name = name ?: throw PulumiNullFieldException("name"),
providerName = providerName,
speedInMbps = speedInMbps,
)
}