Class CfnRouteServerPeerProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnRouteServerPeerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRouteServerPeerProps>
- Enclosing interface:
CfnRouteServerPeerProps
@Stability(Stable)
public static final class CfnRouteServerPeerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRouteServerPeerProps>
A builder for
CfnRouteServerPeerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbgpOptions(IResolvable bgpOptions) Sets the value ofCfnRouteServerPeerProps.getBgpOptions()bgpOptions(CfnRouteServerPeer.BgpOptionsProperty bgpOptions) Sets the value ofCfnRouteServerPeerProps.getBgpOptions()build()Builds the configured instance.peerAddress(String peerAddress) Sets the value ofCfnRouteServerPeerProps.getPeerAddress()routeServerEndpointId(String routeServerEndpointId) Sets the value ofCfnRouteServerPeerProps.getRouteServerEndpointId()Sets the value ofCfnRouteServerPeerProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bgpOptions
Sets the value ofCfnRouteServerPeerProps.getBgpOptions()- Parameters:
bgpOptions- The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings. This parameter is required.- Returns:
this
-
bgpOptions
@Stability(Stable) public CfnRouteServerPeerProps.Builder bgpOptions(CfnRouteServerPeer.BgpOptionsProperty bgpOptions) Sets the value ofCfnRouteServerPeerProps.getBgpOptions()- Parameters:
bgpOptions- The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings. This parameter is required.- Returns:
this
-
peerAddress
Sets the value ofCfnRouteServerPeerProps.getPeerAddress()- Parameters:
peerAddress- The IPv4 address of the peer device. This parameter is required.- Returns:
this
-
routeServerEndpointId
@Stability(Stable) public CfnRouteServerPeerProps.Builder routeServerEndpointId(String routeServerEndpointId) Sets the value ofCfnRouteServerPeerProps.getRouteServerEndpointId()- Parameters:
routeServerEndpointId- The ID of the route server endpoint associated with this peer. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnRouteServerPeerProps.getTags()- Parameters:
tags- Any tags assigned to the route server peer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRouteServerPeerProps>- Returns:
- a new instance of
CfnRouteServerPeerProps - Throws:
NullPointerException- if any required attribute was not provided
-