Class CfnLocalGatewayRouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLocalGatewayRouteProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocalGatewayRouteProps>
- Enclosing interface:
CfnLocalGatewayRouteProps
@Stability(Stable)
public static final class CfnLocalGatewayRouteProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocalGatewayRouteProps>
A builder for
CfnLocalGatewayRouteProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinationCidrBlock
(String destinationCidrBlock) Sets the value ofCfnLocalGatewayRouteProps.getDestinationCidrBlock()
localGatewayRouteTableId
(String localGatewayRouteTableId) Sets the value ofCfnLocalGatewayRouteProps.getLocalGatewayRouteTableId()
localGatewayVirtualInterfaceGroupId
(String localGatewayVirtualInterfaceGroupId) Sets the value ofCfnLocalGatewayRouteProps.getLocalGatewayVirtualInterfaceGroupId()
networkInterfaceId
(String networkInterfaceId) Sets the value ofCfnLocalGatewayRouteProps.getNetworkInterfaceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationCidrBlock
@Stability(Stable) public CfnLocalGatewayRouteProps.Builder destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnLocalGatewayRouteProps.getDestinationCidrBlock()
- Parameters:
destinationCidrBlock
- The CIDR block used for destination matches. This parameter is required.- Returns:
this
-
localGatewayRouteTableId
@Stability(Stable) public CfnLocalGatewayRouteProps.Builder localGatewayRouteTableId(String localGatewayRouteTableId) Sets the value ofCfnLocalGatewayRouteProps.getLocalGatewayRouteTableId()
- Parameters:
localGatewayRouteTableId
- The ID of the local gateway route table. This parameter is required.- Returns:
this
-
localGatewayVirtualInterfaceGroupId
@Stability(Stable) public CfnLocalGatewayRouteProps.Builder localGatewayVirtualInterfaceGroupId(String localGatewayVirtualInterfaceGroupId) Sets the value ofCfnLocalGatewayRouteProps.getLocalGatewayVirtualInterfaceGroupId()
- Parameters:
localGatewayVirtualInterfaceGroupId
- The ID of the virtual interface group.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnLocalGatewayRouteProps.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnLocalGatewayRouteProps.getNetworkInterfaceId()
- Parameters:
networkInterfaceId
- The ID of the network interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocalGatewayRouteProps>
- Returns:
- a new instance of
CfnLocalGatewayRouteProps
- Throws:
NullPointerException
- if any required attribute was not provided
-