Class CfnLocalGatewayVirtualInterfaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLocalGatewayVirtualInterfaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocalGatewayVirtualInterfaceProps>
- Enclosing interface:
CfnLocalGatewayVirtualInterfaceProps
@Stability(Stable)
public static final class CfnLocalGatewayVirtualInterfaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocalGatewayVirtualInterfaceProps>
A builder for
CfnLocalGatewayVirtualInterfaceProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.localAddress
(String localAddress) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getLocalAddress()
localGatewayVirtualInterfaceGroupId
(String localGatewayVirtualInterfaceGroupId) outpostLagId
(String outpostLagId) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getOutpostLagId()
peerAddress
(String peerAddress) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getPeerAddress()
peerBgpAsn
(Number peerBgpAsn) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getPeerBgpAsn()
peerBgpAsnExtended
(Number peerBgpAsnExtended) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getPeerBgpAsnExtended()
Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getTags()
Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getVlan()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
localAddress
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceProps.Builder localAddress(String localAddress) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getLocalAddress()
- Parameters:
localAddress
- The local address. This parameter is required.- Returns:
this
-
localGatewayVirtualInterfaceGroupId
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceProps.Builder localGatewayVirtualInterfaceGroupId(String localGatewayVirtualInterfaceGroupId) - Parameters:
localGatewayVirtualInterfaceGroupId
- The ID of the local gateway virtual interface group. This parameter is required.- Returns:
this
-
outpostLagId
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceProps.Builder outpostLagId(String outpostLagId) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getOutpostLagId()
- Parameters:
outpostLagId
- The Outpost LAG ID. This parameter is required.- Returns:
this
-
peerAddress
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceProps.Builder peerAddress(String peerAddress) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getPeerAddress()
- Parameters:
peerAddress
- The peer address. This parameter is required.- Returns:
this
-
vlan
Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getVlan()
- Parameters:
vlan
- The ID of the VLAN. This parameter is required.- Returns:
this
-
peerBgpAsn
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceProps.Builder peerBgpAsn(Number peerBgpAsn) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getPeerBgpAsn()
- Parameters:
peerBgpAsn
- The peer BGP ASN.- Returns:
this
-
peerBgpAsnExtended
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceProps.Builder peerBgpAsnExtended(Number peerBgpAsnExtended) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getPeerBgpAsnExtended()
- Parameters:
peerBgpAsnExtended
- The extended 32-bit ASN of the BGP peer for use with larger ASN values.- Returns:
this
-
tags
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnLocalGatewayVirtualInterfaceProps.getTags()
- Parameters:
tags
- The tags assigned to the virtual interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocalGatewayVirtualInterfaceProps>
- Returns:
- a new instance of
CfnLocalGatewayVirtualInterfaceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-