Class CfnLocalGatewayVirtualInterfaceGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLocalGatewayVirtualInterfaceGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocalGatewayVirtualInterfaceGroupProps>
- Enclosing interface:
CfnLocalGatewayVirtualInterfaceGroupProps
@Stability(Stable)
public static final class CfnLocalGatewayVirtualInterfaceGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocalGatewayVirtualInterfaceGroupProps>
A builder for
CfnLocalGatewayVirtualInterfaceGroupProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.localBgpAsn
(Number localBgpAsn) Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getLocalBgpAsn()
localBgpAsnExtended
(Number localBgpAsnExtended) Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getLocalBgpAsnExtended()
localGatewayId
(String localGatewayId) Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getLocalGatewayId()
Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
localGatewayId
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceGroupProps.Builder localGatewayId(String localGatewayId) Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getLocalGatewayId()
- Parameters:
localGatewayId
- The ID of the local gateway. This parameter is required.- Returns:
this
-
localBgpAsn
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceGroupProps.Builder localBgpAsn(Number localBgpAsn) Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getLocalBgpAsn()
- Parameters:
localBgpAsn
- The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).- Returns:
this
-
localBgpAsnExtended
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceGroupProps.Builder localBgpAsnExtended(Number localBgpAsnExtended) Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getLocalBgpAsnExtended()
- Parameters:
localBgpAsnExtended
- The extended 32-bit ASN for the local BGP configuration.- Returns:
this
-
tags
@Stability(Stable) public CfnLocalGatewayVirtualInterfaceGroupProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnLocalGatewayVirtualInterfaceGroupProps.getTags()
- Parameters:
tags
- The tags assigned to the virtual interface group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocalGatewayVirtualInterfaceGroupProps>
- Returns:
- a new instance of
CfnLocalGatewayVirtualInterfaceGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-