Class CfnPrivateVirtualInterfaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.directconnect.CfnPrivateVirtualInterfaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrivateVirtualInterfaceMixinProps>
- Enclosing interface:
CfnPrivateVirtualInterfaceMixinProps
@Stability(Stable)
public static final class CfnPrivateVirtualInterfaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrivateVirtualInterfaceMixinProps>
A builder for
CfnPrivateVirtualInterfaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocatePrivateVirtualInterfaceRoleArn(String allocatePrivateVirtualInterfaceRoleArn) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getBgpPeers()bgpPeers(IResolvable bgpPeers) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getBgpPeers()build()Builds the configured instance.connectionId(String connectionId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getConnectionId()connectionId(IConnectionRef connectionId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getConnectionId()connectionId(ILagRef connectionId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getConnectionId()directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getDirectConnectGatewayId()directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getDirectConnectGatewayId()enableSiteLink(Boolean enableSiteLink) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getEnableSiteLink()enableSiteLink(IResolvable enableSiteLink) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getEnableSiteLink()Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getMtu()Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getTags()virtualGatewayId(String virtualGatewayId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getVirtualGatewayId()virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getVirtualInterfaceName()Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getVlan()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocatePrivateVirtualInterfaceRoleArn
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.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
-
bgpPeers
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder bgpPeers(IResolvable bgpPeers) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.- Returns:
this
-
bgpPeers
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder bgpPeers(List<? extends Object> bgpPeers) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getBgpPeers()- Parameters:
bgpPeers- The BGP peers configured on this virtual interface.- Returns:
this
-
connectionId
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder connectionId(String connectionId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getConnectionId()- Parameters:
connectionId- the value to be set.- Returns:
this
-
connectionId
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder connectionId(IConnectionRef connectionId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getConnectionId()- Parameters:
connectionId- the value to be set.- Returns:
this
-
connectionId
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder connectionId(ILagRef connectionId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getConnectionId()- Parameters:
connectionId- the value to be set.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder directConnectGatewayId(String directConnectGatewayId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set.- Returns:
this
-
directConnectGatewayId
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder directConnectGatewayId(IDirectConnectGatewayRef directConnectGatewayId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getDirectConnectGatewayId()- Parameters:
directConnectGatewayId- the value to be set.- Returns:
this
-
enableSiteLink
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder enableSiteLink(Boolean enableSiteLink) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getEnableSiteLink()- Parameters:
enableSiteLink- Indicates whether to enable or disable SiteLink.- Returns:
this
-
enableSiteLink
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder enableSiteLink(IResolvable enableSiteLink) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getEnableSiteLink()- Parameters:
enableSiteLink- Indicates whether to enable or disable SiteLink.- Returns:
this
-
mtu
Sets the value ofCfnPrivateVirtualInterfaceMixinProps.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
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getTags()- Parameters:
tags- The tags associated with the private virtual interface.- Returns:
this
-
virtualGatewayId
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder virtualGatewayId(String virtualGatewayId) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.getVirtualGatewayId()- Parameters:
virtualGatewayId- The ID or ARN of the virtual private gateway.- Returns:
this
-
virtualInterfaceName
@Stability(Stable) public CfnPrivateVirtualInterfaceMixinProps.Builder virtualInterfaceName(String virtualInterfaceName) Sets the value ofCfnPrivateVirtualInterfaceMixinProps.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 ofCfnPrivateVirtualInterfaceMixinProps.getVlan()- Parameters:
vlan- The ID of the VLAN.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrivateVirtualInterfaceMixinProps>- Returns:
- a new instance of
CfnPrivateVirtualInterfaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-