com.pulumi.googlenative.compute.alpha.kotlin.inputs.RouterBgpPeerBfdArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.compute.alpha.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.inputs.RouterBgpPeerBfdArgs.builder
import com.pulumi.googlenative.compute.alpha.kotlin.enums.RouterBgpPeerBfdMode
import com.pulumi.googlenative.compute.alpha.kotlin.enums.RouterBgpPeerBfdPacketMode
import com.pulumi.googlenative.compute.alpha.kotlin.enums.RouterBgpPeerBfdSessionInitializationMode
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property minReceiveInterval The minimum interval, in milliseconds, between BFD control packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
* @property minTransmitInterval The minimum interval, in milliseconds, between BFD control packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
* @property mode The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE.
* @property multiplier The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 5 and 16. The default is 5.
* @property packetMode The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO.
* @property sessionInitializationMode The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
* @property slowTimerInterval The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000.
*/
public data class RouterBgpPeerBfdArgs(
public val minReceiveInterval: Output? = null,
public val minTransmitInterval: Output? = null,
public val mode: Output? = null,
public val multiplier: Output? = null,
public val packetMode: Output? = null,
public val sessionInitializationMode: Output? = null,
public val slowTimerInterval: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.inputs.RouterBgpPeerBfdArgs =
com.pulumi.googlenative.compute.alpha.inputs.RouterBgpPeerBfdArgs.builder()
.minReceiveInterval(minReceiveInterval?.applyValue({ args0 -> args0 }))
.minTransmitInterval(minTransmitInterval?.applyValue({ args0 -> args0 }))
.mode(mode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.multiplier(multiplier?.applyValue({ args0 -> args0 }))
.packetMode(packetMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sessionInitializationMode(
sessionInitializationMode?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.slowTimerInterval(slowTimerInterval?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RouterBgpPeerBfdArgs].
*/
@PulumiTagMarker
public class RouterBgpPeerBfdArgsBuilder internal constructor() {
private var minReceiveInterval: Output? = null
private var minTransmitInterval: Output? = null
private var mode: Output? = null
private var multiplier: Output? = null
private var packetMode: Output? = null
private var sessionInitializationMode: Output? = null
private var slowTimerInterval: Output? = null
/**
* @param value The minimum interval, in milliseconds, between BFD control packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
*/
@JvmName("dbhcppvvbdkvpama")
public suspend fun minReceiveInterval(`value`: Output) {
this.minReceiveInterval = value
}
/**
* @param value The minimum interval, in milliseconds, between BFD control packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
*/
@JvmName("jdvehfpufaeufece")
public suspend fun minTransmitInterval(`value`: Output) {
this.minTransmitInterval = value
}
/**
* @param value The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE.
*/
@JvmName("saenhvhetlxsjwmj")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 5 and 16. The default is 5.
*/
@JvmName("cwypoujkonepygpp")
public suspend fun multiplier(`value`: Output) {
this.multiplier = value
}
/**
* @param value The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO.
*/
@JvmName("lbshdxpyqtcvdoxp")
public suspend fun packetMode(`value`: Output) {
this.packetMode = value
}
/**
* @param value The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
*/
@JvmName("sxolsjpplrdpakke")
public suspend fun sessionInitializationMode(`value`: Output) {
this.sessionInitializationMode = value
}
/**
* @param value The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000.
*/
@JvmName("nsoixrocaywmgeur")
public suspend fun slowTimerInterval(`value`: Output) {
this.slowTimerInterval = value
}
/**
* @param value The minimum interval, in milliseconds, between BFD control packets received from the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the transmit interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
*/
@JvmName("efuhvipvgdiropkw")
public suspend fun minReceiveInterval(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minReceiveInterval = mapped
}
/**
* @param value The minimum interval, in milliseconds, between BFD control packets transmitted to the peer router. The actual value is negotiated between the two routers and is equal to the greater of this value and the corresponding receive interval of the other router. If set, this value must be between 1000 and 30000. The default is 1000.
*/
@JvmName("xuhtujqcjtuybskv")
public suspend fun minTransmitInterval(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minTransmitInterval = mapped
}
/**
* @param value The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is PASSIVE.
*/
@JvmName("unvskvvxrfrbwxfk")
public suspend fun mode(`value`: RouterBgpPeerBfdMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value The number of consecutive BFD packets that must be missed before BFD declares that a peer is unavailable. If set, the value must be a value between 5 and 16. The default is 5.
*/
@JvmName("ifseqkudtargwbik")
public suspend fun multiplier(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.multiplier = mapped
}
/**
* @param value The BFD packet mode for this BGP peer. If set to CONTROL_AND_ECHO, BFD echo mode is enabled for this BGP peer. In this mode, if the peer router also has BFD echo mode enabled, BFD echo packets will be sent to the other router. If the peer router does not have BFD echo mode enabled, only control packets will be sent. If set to CONTROL_ONLY, BFD echo mode is disabled for this BGP peer. If this router and the peer router have a multihop connection, this should be set to CONTROL_ONLY as BFD echo mode is only supported on singlehop connections. The default is CONTROL_AND_ECHO.
*/
@JvmName("qmieahjdnxmxkoxi")
public suspend fun packetMode(`value`: RouterBgpPeerBfdPacketMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.packetMode = mapped
}
/**
* @param value The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. The default is DISABLED.
*/
@JvmName("mtpqvutvjlsjmqtr")
public suspend fun sessionInitializationMode(`value`: RouterBgpPeerBfdSessionInitializationMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sessionInitializationMode = mapped
}
/**
* @param value The minimum interval, in milliseconds, between BFD control packets transmitted to and received from the peer router when BFD echo mode is enabled on both routers. The actual transmit and receive intervals are negotiated between the two routers and are equal to the greater of this value and the corresponding interval on the other router. If set, this value must be between 1000 and 30000. The default is 5000.
*/
@JvmName("avvomxbmprbhybfo")
public suspend fun slowTimerInterval(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.slowTimerInterval = mapped
}
internal fun build(): RouterBgpPeerBfdArgs = RouterBgpPeerBfdArgs(
minReceiveInterval = minReceiveInterval,
minTransmitInterval = minTransmitInterval,
mode = mode,
multiplier = multiplier,
packetMode = packetMode,
sessionInitializationMode = sessionInitializationMode,
slowTimerInterval = slowTimerInterval,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy