![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.network.kotlin.outputs.VpnGatewayBgpSettings.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.network.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property asn The ASN of the BGP Speaker. Changing this forces a new resource to be created.
* @property bgpPeeringAddress The Address which should be used for the BGP Peering.
* @property instance0BgpPeeringAddress An `instance_bgp_peering_address` block as defined below.
* @property instance1BgpPeeringAddress An `instance_bgp_peering_address` block as defined below.
* @property peerWeight The weight added to Routes learned from this BGP Speaker. Changing this forces a new resource to be created.
*/
public data class VpnGatewayBgpSettings(
public val asn: Int,
public val bgpPeeringAddress: String? = null,
public val instance0BgpPeeringAddress: VpnGatewayBgpSettingsInstance0BgpPeeringAddress? = null,
public val instance1BgpPeeringAddress: VpnGatewayBgpSettingsInstance1BgpPeeringAddress? = null,
public val peerWeight: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.network.outputs.VpnGatewayBgpSettings): VpnGatewayBgpSettings = VpnGatewayBgpSettings(
asn = javaType.asn(),
bgpPeeringAddress = javaType.bgpPeeringAddress().map({ args0 -> args0 }).orElse(null),
instance0BgpPeeringAddress = javaType.instance0BgpPeeringAddress().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.network.kotlin.outputs.VpnGatewayBgpSettingsInstance0BgpPeeringAddress.Companion.toKotlin(args0)
})
}).orElse(null),
instance1BgpPeeringAddress = javaType.instance1BgpPeeringAddress().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.network.kotlin.outputs.VpnGatewayBgpSettingsInstance1BgpPeeringAddress.Companion.toKotlin(args0)
})
}).orElse(null),
peerWeight = javaType.peerWeight(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy