Class CfnConnectPeer.ConnectPeerBgpConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkmanager.CfnConnectPeer.ConnectPeerBgpConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectPeer.ConnectPeerBgpConfigurationProperty>
- Enclosing interface:
- CfnConnectPeer.ConnectPeerBgpConfigurationProperty
@Stability(Stable)
public static final class CfnConnectPeer.ConnectPeerBgpConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectPeer.ConnectPeerBgpConfigurationProperty>
A builder for
CfnConnectPeer.ConnectPeerBgpConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.coreNetworkAddress(String coreNetworkAddress) coreNetworkAsn(Number coreNetworkAsn) Sets the value ofCfnConnectPeer.ConnectPeerBgpConfigurationProperty.getCoreNetworkAsn()peerAddress(String peerAddress) Sets the value ofCfnConnectPeer.ConnectPeerBgpConfigurationProperty.getPeerAddress()Sets the value ofCfnConnectPeer.ConnectPeerBgpConfigurationProperty.getPeerAsn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coreNetworkAddress
@Stability(Stable) public CfnConnectPeer.ConnectPeerBgpConfigurationProperty.Builder coreNetworkAddress(String coreNetworkAddress) - Parameters:
coreNetworkAddress- The address of a core network.- Returns:
this
-
coreNetworkAsn
@Stability(Stable) public CfnConnectPeer.ConnectPeerBgpConfigurationProperty.Builder coreNetworkAsn(Number coreNetworkAsn) Sets the value ofCfnConnectPeer.ConnectPeerBgpConfigurationProperty.getCoreNetworkAsn()- Parameters:
coreNetworkAsn- The ASN of the Coret Network.- Returns:
this
-
peerAddress
@Stability(Stable) public CfnConnectPeer.ConnectPeerBgpConfigurationProperty.Builder peerAddress(String peerAddress) Sets the value ofCfnConnectPeer.ConnectPeerBgpConfigurationProperty.getPeerAddress()- Parameters:
peerAddress- The address of a core network Connect peer.- Returns:
this
-
peerAsn
@Stability(Stable) public CfnConnectPeer.ConnectPeerBgpConfigurationProperty.Builder peerAsn(Number peerAsn) Sets the value ofCfnConnectPeer.ConnectPeerBgpConfigurationProperty.getPeerAsn()- Parameters:
peerAsn- The ASN of the Connect peer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectPeer.ConnectPeerBgpConfigurationProperty>- Returns:
- a new instance of
CfnConnectPeer.ConnectPeerBgpConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-