Class LocalGatewayRouteReference.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.LocalGatewayRouteReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LocalGatewayRouteReference>
- Enclosing interface:
LocalGatewayRouteReference
@Stability(Stable)
public static final class LocalGatewayRouteReference.Builder
extends Object
implements software.amazon.jsii.Builder<LocalGatewayRouteReference>
A builder for
LocalGatewayRouteReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinationCidrBlock
(String destinationCidrBlock) Sets the value ofLocalGatewayRouteReference.getDestinationCidrBlock()
localGatewayRouteTableId
(String localGatewayRouteTableId) Sets the value ofLocalGatewayRouteReference.getLocalGatewayRouteTableId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationCidrBlock
@Stability(Stable) public LocalGatewayRouteReference.Builder destinationCidrBlock(String destinationCidrBlock) Sets the value ofLocalGatewayRouteReference.getDestinationCidrBlock()
- Parameters:
destinationCidrBlock
- The DestinationCidrBlock of the LocalGatewayRoute resource. This parameter is required.- Returns:
this
-
localGatewayRouteTableId
@Stability(Stable) public LocalGatewayRouteReference.Builder localGatewayRouteTableId(String localGatewayRouteTableId) Sets the value ofLocalGatewayRouteReference.getLocalGatewayRouteTableId()
- Parameters:
localGatewayRouteTableId
- The LocalGatewayRouteTableId of the LocalGatewayRoute resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LocalGatewayRouteReference>
- Returns:
- a new instance of
LocalGatewayRouteReference
- Throws:
NullPointerException
- if any required attribute was not provided
-