Class CfnRouteServerPeerPropsMixin.BgpOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnRouteServerPeerPropsMixin.BgpOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRouteServerPeerPropsMixin.BgpOptionsProperty>
- Enclosing interface:
CfnRouteServerPeerPropsMixin.BgpOptionsProperty
@Stability(Stable)
public static final class CfnRouteServerPeerPropsMixin.BgpOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRouteServerPeerPropsMixin.BgpOptionsProperty>
A builder for
CfnRouteServerPeerPropsMixin.BgpOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRouteServerPeerPropsMixin.BgpOptionsProperty.getPeerAsn()peerLivenessDetection(String peerLivenessDetection)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
peerAsn
@Stability(Stable) public CfnRouteServerPeerPropsMixin.BgpOptionsProperty.Builder peerAsn(Number peerAsn) Sets the value ofCfnRouteServerPeerPropsMixin.BgpOptionsProperty.getPeerAsn()- Parameters:
peerAsn- The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance. Valid values are from 1 to 4294967295. We recommend using a private ASN in the 64512–65534 (16-bit ASN) or 4200000000–4294967294 (32-bit ASN) range.- Returns:
this
-
peerLivenessDetection
@Stability(Stable) public CfnRouteServerPeerPropsMixin.BgpOptionsProperty.Builder peerLivenessDetection(String peerLivenessDetection) - Parameters:
peerLivenessDetection- The liveness detection protocol used for the BGP peer. The requested liveness detection protocol for the BGP peer.bgp-keepalive: The standard BGP keep alive mechanism ( RFC4271 ) that is stable but may take longer to fail-over in cases of network impact or router failure.bfd: An additional Bidirectional Forwarding Detection (BFD) protocol ( RFC5880 ) that enables fast failover by using more sensitive liveness detection.
Defaults to
bgp-keepalive.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRouteServerPeerPropsMixin.BgpOptionsProperty>- Returns:
- a new instance of
CfnRouteServerPeerPropsMixin.BgpOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-