Class CfnPrivateVirtualInterface.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnPrivateVirtualInterface.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrivateVirtualInterface>
- Enclosing class:
CfnPrivateVirtualInterface
@Stability(Stable)
public static final class CfnPrivateVirtualInterface.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrivateVirtualInterface>
A fluent builder for
CfnPrivateVirtualInterface.-
Method Summary
Modifier and TypeMethodDescriptionallocatePrivateVirtualInterfaceRoleArn(String allocatePrivateVirtualInterfaceRoleArn) The Amazon Resource Name (ARN) of the role to allocate the private virtual interface.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.virtualGatewayId(String virtualGatewayId) The ID or ARN of the virtual private gateway.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 CfnPrivateVirtualInterface.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
CfnPrivateVirtualInterface.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 CfnPrivateVirtualInterface.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 CfnPrivateVirtualInterface.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:
-
virtualInterfaceName
@Stability(Stable) public CfnPrivateVirtualInterface.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:
-
allocatePrivateVirtualInterfaceRoleArn
@Stability(Stable) public CfnPrivateVirtualInterface.Builder allocatePrivateVirtualInterfaceRoleArn(String allocatePrivateVirtualInterfaceRoleArn) The Amazon Resource Name (ARN) of the role to allocate the private virtual interface.Needs directconnect:AllocatePrivateVirtualInterface permissions and tag permissions if applicable.
- Parameters:
allocatePrivateVirtualInterfaceRoleArn- The Amazon Resource Name (ARN) of the role to allocate the private virtual interface. This parameter is required.- Returns:
this- See Also:
-
directConnectGatewayId
@Stability(Stable) public CfnPrivateVirtualInterface.Builder directConnectGatewayId(String directConnectGatewayId) - Parameters:
directConnectGatewayId- This parameter is required.- Returns:
this- See Also:
-
directConnectGatewayId
@Stability(Stable) public CfnPrivateVirtualInterface.Builder directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) - Parameters:
directConnectGatewayId- 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 CfnPrivateVirtualInterface.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:
-
virtualGatewayId
@Stability(Stable) public CfnPrivateVirtualInterface.Builder virtualGatewayId(String virtualGatewayId) The ID or ARN of the virtual private gateway.- Parameters:
virtualGatewayId- The ID or ARN of the virtual private gateway. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrivateVirtualInterface>- Returns:
- a newly built instance of
CfnPrivateVirtualInterface.
-