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