Class CfnPublicVirtualInterfaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.directconnect.CfnPublicVirtualInterfaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPublicVirtualInterfaceMixinProps>
- Enclosing interface:
CfnPublicVirtualInterfaceMixinProps
@Stability(Stable)
public static final class CfnPublicVirtualInterfaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPublicVirtualInterfaceMixinProps>
A builder for
CfnPublicVirtualInterfaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocatePublicVirtualInterfaceRoleArn(String allocatePublicVirtualInterfaceRoleArn) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getBgpPeers()bgpPeers(IResolvable bgpPeers) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getBgpPeers()build()Builds the configured instance.connectionId(String connectionId) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getConnectionId()connectionId(IConnectionRef connectionId) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getConnectionId()connectionId(ILagRef connectionId) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getConnectionId()Sets the value ofCfnPublicVirtualInterfaceMixinProps.getRateLimit()routeFilterPrefixes(List<String> routeFilterPrefixes) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getRouteFilterPrefixes()Sets the value ofCfnPublicVirtualInterfaceMixinProps.getTags()virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getVirtualInterfaceName()Sets the value ofCfnPublicVirtualInterfaceMixinProps.getVlan()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocatePublicVirtualInterfaceRoleArn
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.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
-
bgpPeers
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.Builder bgpPeers(IResolvable bgpPeers) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.- Returns:
this
-
bgpPeers
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.Builder bgpPeers(List<? extends Object> bgpPeers) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.- Returns:
this
-
connectionId
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.Builder connectionId(String connectionId) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getConnectionId()- Parameters:
connectionId- the value to be set.- Returns:
this
-
connectionId
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.Builder connectionId(IConnectionRef connectionId) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getConnectionId()- Parameters:
connectionId- the value to be set.- Returns:
this
-
connectionId
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.Builder connectionId(ILagRef connectionId) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getConnectionId()- Parameters:
connectionId- the value to be set.- Returns:
this
-
rateLimit
Sets the value ofCfnPublicVirtualInterfaceMixinProps.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 CfnPublicVirtualInterfaceMixinProps.Builder routeFilterPrefixes(List<String> routeFilterPrefixes) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getRouteFilterPrefixes()- Parameters:
routeFilterPrefixes- The routes to be advertised to the AWS network in this region.- Returns:
this
-
tags
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getTags()- Parameters:
tags- The tags associated with the public virtual interface.- Returns:
this
-
virtualInterfaceName
@Stability(Stable) public CfnPublicVirtualInterfaceMixinProps.Builder virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnPublicVirtualInterfaceMixinProps.getVirtualInterfaceName()- Parameters:
virtualInterfaceName- The name of the virtual interface assigned by the customer network. 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 ofCfnPublicVirtualInterfaceMixinProps.getVlan()- Parameters:
vlan- The ID of the VLAN.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPublicVirtualInterfaceMixinProps>- Returns:
- a new instance of
CfnPublicVirtualInterfaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-