Class CfnPublicVirtualInterfaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnPublicVirtualInterfaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPublicVirtualInterfaceProps>
- Enclosing interface:
CfnPublicVirtualInterfaceProps
@Stability(Stable)
public static final class CfnPublicVirtualInterfaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPublicVirtualInterfaceProps>
A builder for
CfnPublicVirtualInterfaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocatePublicVirtualInterfaceRoleArn(String allocatePublicVirtualInterfaceRoleArn) Sets the value ofCfnPublicVirtualInterfaceProps.getBgpPeers()bgpPeers(IResolvable bgpPeers) Sets the value ofCfnPublicVirtualInterfaceProps.getBgpPeers()build()Builds the configured instance.connectionId(String connectionId) Sets the value ofCfnPublicVirtualInterfaceProps.getConnectionId()connectionId(IConnectionRef connectionId) Sets the value ofCfnPublicVirtualInterfaceProps.getConnectionId()connectionId(ILagRef connectionId) Sets the value ofCfnPublicVirtualInterfaceProps.getConnectionId()Sets the value ofCfnPublicVirtualInterfaceProps.getRateLimit()routeFilterPrefixes(List<String> routeFilterPrefixes) Sets the value ofCfnPublicVirtualInterfaceProps.getRouteFilterPrefixes()Sets the value ofCfnPublicVirtualInterfaceProps.getTags()virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnPublicVirtualInterfaceProps.getVirtualInterfaceName()Sets the value ofCfnPublicVirtualInterfaceProps.getVlan()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bgpPeers
Sets the value ofCfnPublicVirtualInterfaceProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface. This parameter is required.- Returns:
this
-
bgpPeers
@Stability(Stable) public CfnPublicVirtualInterfaceProps.Builder bgpPeers(List<? extends Object> bgpPeers) Sets the value ofCfnPublicVirtualInterfaceProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface. This parameter is required.- Returns:
this
-
connectionId
Sets the value ofCfnPublicVirtualInterfaceProps.getConnectionId()- Parameters:
connectionId- the value to be set. This parameter is required.- Returns:
this
-
connectionId
@Stability(Stable) public CfnPublicVirtualInterfaceProps.Builder connectionId(IConnectionRef connectionId) Sets the value ofCfnPublicVirtualInterfaceProps.getConnectionId()- Parameters:
connectionId- the value to be set. This parameter is required.- Returns:
this
-
connectionId
Sets the value ofCfnPublicVirtualInterfaceProps.getConnectionId()- Parameters:
connectionId- the value to be set. This parameter is required.- Returns:
this
-
virtualInterfaceName
@Stability(Stable) public CfnPublicVirtualInterfaceProps.Builder virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnPublicVirtualInterfaceProps.getVirtualInterfaceName()- Parameters:
virtualInterfaceName- The name of the virtual interface assigned by the customer network. This parameter is required. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).- Returns:
this
-
vlan
Sets the value ofCfnPublicVirtualInterfaceProps.getVlan()- Parameters:
vlan- The ID of the VLAN. This parameter is required.- Returns:
this
-
allocatePublicVirtualInterfaceRoleArn
@Stability(Stable) public CfnPublicVirtualInterfaceProps.Builder allocatePublicVirtualInterfaceRoleArn(String allocatePublicVirtualInterfaceRoleArn) - Parameters:
allocatePublicVirtualInterfaceRoleArn- The Amazon Resource Name (ARN) of the role to allocate the public virtual interface. Needs directconnect:AllocatePublicVirtualInterface permissions and tag permissions if applicable.- Returns:
this
-
rateLimit
Sets the value ofCfnPublicVirtualInterfaceProps.getRateLimit()- Parameters:
rateLimit- The rate limit (bandwidth allocation) for the virtual interface. The value must be one of the supported bandwidth values (e.g., 50Mbps, 1Gbps, 10Gbps) and cannot exceed the bandwidth of the parent connection or LAG.- Returns:
this
-
routeFilterPrefixes
@Stability(Stable) public CfnPublicVirtualInterfaceProps.Builder routeFilterPrefixes(List<String> routeFilterPrefixes) Sets the value ofCfnPublicVirtualInterfaceProps.getRouteFilterPrefixes()- Parameters:
routeFilterPrefixes- The routes to be advertised to the AWS network in this region.- Returns:
this
-
tags
Sets the value ofCfnPublicVirtualInterfaceProps.getTags()- Parameters:
tags- The tags associated with the public virtual interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPublicVirtualInterfaceProps>- Returns:
- a new instance of
CfnPublicVirtualInterfaceProps - Throws:
NullPointerException- if any required attribute was not provided
-