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