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