Class CfnTransitVirtualInterfaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnTransitVirtualInterfaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitVirtualInterfaceProps>
- Enclosing interface:
CfnTransitVirtualInterfaceProps
@Stability(Stable)
public static final class CfnTransitVirtualInterfaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitVirtualInterfaceProps>
A builder for
CfnTransitVirtualInterfaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocateTransitVirtualInterfaceRoleArn(String allocateTransitVirtualInterfaceRoleArn) Sets the value ofCfnTransitVirtualInterfaceProps.getBgpPeers()bgpPeers(IResolvable bgpPeers) Sets the value ofCfnTransitVirtualInterfaceProps.getBgpPeers()build()Builds the configured instance.connectionId(String connectionId) Sets the value ofCfnTransitVirtualInterfaceProps.getConnectionId()connectionId(IConnectionRef connectionId) Sets the value ofCfnTransitVirtualInterfaceProps.getConnectionId()connectionId(ILagRef connectionId) Sets the value ofCfnTransitVirtualInterfaceProps.getConnectionId()directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnTransitVirtualInterfaceProps.getDirectConnectGatewayId()directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnTransitVirtualInterfaceProps.getDirectConnectGatewayId()enableSiteLink(Boolean enableSiteLink) Sets the value ofCfnTransitVirtualInterfaceProps.getEnableSiteLink()enableSiteLink(IResolvable enableSiteLink) Sets the value ofCfnTransitVirtualInterfaceProps.getEnableSiteLink()Sets the value ofCfnTransitVirtualInterfaceProps.getMtu()Sets the value ofCfnTransitVirtualInterfaceProps.getRateLimit()Sets the value ofCfnTransitVirtualInterfaceProps.getTags()virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnTransitVirtualInterfaceProps.getVirtualInterfaceName()Sets the value ofCfnTransitVirtualInterfaceProps.getVlan()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bgpPeers
Sets the value ofCfnTransitVirtualInterfaceProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.. This parameter is required.- Returns:
this
-
bgpPeers
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder bgpPeers(List<? extends Object> bgpPeers) Sets the value ofCfnTransitVirtualInterfaceProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.. This parameter is required.- Returns:
this
-
connectionId
Sets the value ofCfnTransitVirtualInterfaceProps.getConnectionId()- Parameters:
connectionId- the value to be set. This parameter is required.- Returns:
this
-
connectionId
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder connectionId(IConnectionRef connectionId) Sets the value ofCfnTransitVirtualInterfaceProps.getConnectionId()- Parameters:
connectionId- the value to be set. This parameter is required.- Returns:
this
-
connectionId
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder connectionId(ILagRef connectionId) Sets the value ofCfnTransitVirtualInterfaceProps.getConnectionId()- Parameters:
connectionId- the value to be set. This parameter is required.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnTransitVirtualInterfaceProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set. This parameter is required.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnTransitVirtualInterfaceProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set. This parameter is required.- Returns:
this
-
virtualInterfaceName
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnTransitVirtualInterfaceProps.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 ofCfnTransitVirtualInterfaceProps.getVlan()- Parameters:
vlan- The ID of the VLAN. This parameter is required.- Returns:
this
-
allocateTransitVirtualInterfaceRoleArn
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder allocateTransitVirtualInterfaceRoleArn(String allocateTransitVirtualInterfaceRoleArn) - Parameters:
allocateTransitVirtualInterfaceRoleArn- The Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation. Needs directconnect:AllocateTransitVirtualInterface permissions and tag permissions if applicable.- Returns:
this
-
enableSiteLink
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder enableSiteLink(Boolean enableSiteLink) Sets the value ofCfnTransitVirtualInterfaceProps.getEnableSiteLink()- Parameters:
enableSiteLink- Indicates whether to enable or disable SiteLink.- Returns:
this
-
enableSiteLink
@Stability(Stable) public CfnTransitVirtualInterfaceProps.Builder enableSiteLink(IResolvable enableSiteLink) Sets the value ofCfnTransitVirtualInterfaceProps.getEnableSiteLink()- Parameters:
enableSiteLink- Indicates whether to enable or disable SiteLink.- Returns:
this
-
mtu
Sets the value ofCfnTransitVirtualInterfaceProps.getMtu()- Parameters:
mtu- The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.- Returns:
this
-
rateLimit
Sets the value ofCfnTransitVirtualInterfaceProps.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
-
tags
Sets the value ofCfnTransitVirtualInterfaceProps.getTags()- Parameters:
tags- The tags associated with the private virtual interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitVirtualInterfaceProps>- Returns:
- a new instance of
CfnTransitVirtualInterfaceProps - Throws:
NullPointerException- if any required attribute was not provided
-