Class ComputeRouterPeerBfd.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_router_peer.ComputeRouterPeerBfd.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRouterPeerBfd>
- Enclosing interface:
- ComputeRouterPeerBfd
@Stability(Stable) public static final class ComputeRouterPeerBfd.Builder extends Object implements software.amazon.jsii.Builder<ComputeRouterPeerBfd>
A builder forComputeRouterPeerBfd
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRouterPeerBfdbuild()Builds the configured instance.ComputeRouterPeerBfd.BuilderminReceiveInterval(Number minReceiveInterval)Sets the value ofComputeRouterPeerBfd.getMinReceiveInterval()ComputeRouterPeerBfd.BuilderminTransmitInterval(Number minTransmitInterval)Sets the value ofComputeRouterPeerBfd.getMinTransmitInterval()ComputeRouterPeerBfd.Buildermultiplier(Number multiplier)Sets the value ofComputeRouterPeerBfd.getMultiplier()ComputeRouterPeerBfd.BuildersessionInitializationMode(String sessionInitializationMode)Sets the value ofComputeRouterPeerBfd.getSessionInitializationMode()
-
-
-
Method Detail
-
sessionInitializationMode
@Stability(Stable) public ComputeRouterPeerBfd.Builder sessionInitializationMode(String sessionInitializationMode)
Sets the value ofComputeRouterPeerBfd.getSessionInitializationMode()- Parameters:
sessionInitializationMode- The BFD session initialization mode for this BGP peer. This parameter is required. 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. Possible values: ["ACTIVE", "DISABLED", "PASSIVE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_peer#session_initialization_mode ComputeRouterPeer#session_initialization_mode}- Returns:
this
-
minReceiveInterval
@Stability(Stable) public ComputeRouterPeerBfd.Builder minReceiveInterval(Number minReceiveInterval)
Sets the value ofComputeRouterPeerBfd.getMinReceiveInterval()- Parameters:
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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_peer#min_receive_interval ComputeRouterPeer#min_receive_interval}- Returns:
this
-
minTransmitInterval
@Stability(Stable) public ComputeRouterPeerBfd.Builder minTransmitInterval(Number minTransmitInterval)
Sets the value ofComputeRouterPeerBfd.getMinTransmitInterval()- Parameters:
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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_peer#min_transmit_interval ComputeRouterPeer#min_transmit_interval}- Returns:
this
-
multiplier
@Stability(Stable) public ComputeRouterPeerBfd.Builder multiplier(Number multiplier)
Sets the value ofComputeRouterPeerBfd.getMultiplier()- Parameters:
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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_peer#multiplier ComputeRouterPeer#multiplier}- Returns:
this
-
build
@Stability(Stable) public ComputeRouterPeerBfd build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRouterPeerBfd>- Returns:
- a new instance of
ComputeRouterPeerBfd - Throws:
NullPointerException- if any required attribute was not provided
-
-