Class CfnTransitVirtualInterface.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnTransitVirtualInterface.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitVirtualInterface>
- Enclosing class:
CfnTransitVirtualInterface
@Stability(Stable)
public static final class CfnTransitVirtualInterface.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitVirtualInterface>
A fluent builder for
CfnTransitVirtualInterface.-
Method Summary
Modifier and TypeMethodDescriptionallocateTransitVirtualInterfaceRoleArn(String allocateTransitVirtualInterfaceRoleArn) The Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation.The BGP peers configured on this virtual interface..bgpPeers(IResolvable bgpPeers) The BGP peers configured on this virtual interface..build()connectionId(String connectionId) connectionId(IConnectionRef connectionId) connectionId(ILagRef connectionId) directConnectGatewayId(String directConnectGatewayId) directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) enableSiteLink(Boolean enableSiteLink) Indicates whether to enable or disable SiteLink.enableSiteLink(IResolvable enableSiteLink) Indicates whether to enable or disable SiteLink.The maximum transmission unit (MTU), in bytes.The tags associated with the private virtual interface.virtualInterfaceName(String virtualInterfaceName) The name of the virtual interface assigned by the customer network.The ID of the VLAN.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitVirtualInterface.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTransitVirtualInterface.Builder.
-
bgpPeers
The BGP peers configured on this virtual interface..- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.. This parameter is required.- Returns:
this- See Also:
-
bgpPeers
@Stability(Stable) public CfnTransitVirtualInterface.Builder bgpPeers(List<? extends Object> bgpPeers) The BGP peers configured on this virtual interface..- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.. This parameter is required.- Returns:
this- See Also:
-
connectionId
- Parameters:
connectionId- This parameter is required.- Returns:
this- See Also:
-
connectionId
@Stability(Stable) public CfnTransitVirtualInterface.Builder connectionId(IConnectionRef connectionId) - Parameters:
connectionId- This parameter is required.- Returns:
this- See Also:
-
connectionId
- Parameters:
connectionId- This parameter is required.- Returns:
this- See Also:
-
directConnectGatewayId
@Stability(Stable) public CfnTransitVirtualInterface.Builder directConnectGatewayId(String directConnectGatewayId) - Parameters:
directConnectGatewayId- This parameter is required.- Returns:
this- See Also:
-
directConnectGatewayId
@Stability(Stable) public CfnTransitVirtualInterface.Builder directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) - Parameters:
directConnectGatewayId- This parameter is required.- Returns:
this- See Also:
-
virtualInterfaceName
@Stability(Stable) public CfnTransitVirtualInterface.Builder virtualInterfaceName(String 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 (-).
- Parameters:
virtualInterfaceName- The name of the virtual interface assigned by the customer network. This parameter is required.- Returns:
this- See Also:
-
vlan
The ID of the VLAN.- Parameters:
vlan- The ID of the VLAN. This parameter is required.- Returns:
this- See Also:
-
allocateTransitVirtualInterfaceRoleArn
@Stability(Stable) public CfnTransitVirtualInterface.Builder allocateTransitVirtualInterfaceRoleArn(String allocateTransitVirtualInterfaceRoleArn) The Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation.Needs directconnect:AllocateTransitVirtualInterface permissions and tag permissions if applicable.
- Parameters:
allocateTransitVirtualInterfaceRoleArn- The Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation. This parameter is required.- Returns:
this- See Also:
-
enableSiteLink
Indicates whether to enable or disable SiteLink.- Parameters:
enableSiteLink- Indicates whether to enable or disable SiteLink. This parameter is required.- Returns:
this- See Also:
-
enableSiteLink
@Stability(Stable) public CfnTransitVirtualInterface.Builder enableSiteLink(IResolvable enableSiteLink) Indicates whether to enable or disable SiteLink.- Parameters:
enableSiteLink- Indicates whether to enable or disable SiteLink. This parameter is required.- Returns:
this- See Also:
-
mtu
The maximum transmission unit (MTU), in bytes.The supported values are 1500 and 9001. The default value is 1500.
- Parameters:
mtu- The maximum transmission unit (MTU), in bytes. This parameter is required.- Returns:
this- See Also:
-
tags
The tags associated with the private virtual interface.- Parameters:
tags- The tags associated with the private virtual interface. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitVirtualInterface>- Returns:
- a newly built instance of
CfnTransitVirtualInterface.
-