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