Class CfnPrivateVirtualInterface.BgpPeerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnPrivateVirtualInterface.BgpPeerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrivateVirtualInterface.BgpPeerProperty>
- Enclosing interface:
CfnPrivateVirtualInterface.BgpPeerProperty
@Stability(Stable)
public static final class CfnPrivateVirtualInterface.BgpPeerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrivateVirtualInterface.BgpPeerProperty>
A builder for
CfnPrivateVirtualInterface.BgpPeerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressFamily(String addressFamily) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAddressFamily()amazonAddress(String amazonAddress) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAmazonAddress()Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAsn()Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAuthKey()Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getBgpPeerId()build()Builds the configured instance.customerAddress(String customerAddress) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getCustomerAddress()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addressFamily
@Stability(Stable) public CfnPrivateVirtualInterface.BgpPeerProperty.Builder addressFamily(String addressFamily) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAddressFamily()- Parameters:
addressFamily- The address family for the BGP peer. This parameter is required.- Returns:
this
-
asn
Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAsn()- Parameters:
asn- The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. This parameter is required.- Returns:
this
-
amazonAddress
@Stability(Stable) public CfnPrivateVirtualInterface.BgpPeerProperty.Builder amazonAddress(String amazonAddress) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAmazonAddress()- Parameters:
amazonAddress- The IP address assigned to the Amazon interface.- Returns:
this
-
authKey
@Stability(Stable) public CfnPrivateVirtualInterface.BgpPeerProperty.Builder authKey(String authKey) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getAuthKey()- Parameters:
authKey- The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximum length of 80 characters.- Returns:
this
-
bgpPeerId
@Stability(Stable) public CfnPrivateVirtualInterface.BgpPeerProperty.Builder bgpPeerId(String bgpPeerId) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getBgpPeerId()- Parameters:
bgpPeerId- the value to be set.- Returns:
this
-
customerAddress
@Stability(Stable) public CfnPrivateVirtualInterface.BgpPeerProperty.Builder customerAddress(String customerAddress) Sets the value ofCfnPrivateVirtualInterface.BgpPeerProperty.getCustomerAddress()- Parameters:
customerAddress- The IP address assigned to the customer interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrivateVirtualInterface.BgpPeerProperty>- Returns:
- a new instance of
CfnPrivateVirtualInterface.BgpPeerProperty - Throws:
NullPointerException- if any required attribute was not provided
-