Class CfnTransitGatewayRouteProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayRouteProps>
- Enclosing interface:
CfnTransitGatewayRouteProps
@Stability(Stable)
public static final class CfnTransitGatewayRouteProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayRouteProps>
A builder for
CfnTransitGatewayRouteProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTransitGatewayRouteProps.getBlackhole()
blackhole
(IResolvable blackhole) Sets the value ofCfnTransitGatewayRouteProps.getBlackhole()
build()
Builds the configured instance.destinationCidrBlock
(String destinationCidrBlock) Sets the value ofCfnTransitGatewayRouteProps.getDestinationCidrBlock()
transitGatewayAttachmentId
(String transitGatewayAttachmentId) Sets the value ofCfnTransitGatewayRouteProps.getTransitGatewayAttachmentId()
transitGatewayRouteTableId
(String transitGatewayRouteTableId) Sets the value ofCfnTransitGatewayRouteProps.getTransitGatewayRouteTableId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
transitGatewayRouteTableId
@Stability(Stable) public CfnTransitGatewayRouteProps.Builder transitGatewayRouteTableId(String transitGatewayRouteTableId) Sets the value ofCfnTransitGatewayRouteProps.getTransitGatewayRouteTableId()
- Parameters:
transitGatewayRouteTableId
- The ID of the transit gateway route table. This parameter is required.- Returns:
this
-
blackhole
Sets the value ofCfnTransitGatewayRouteProps.getBlackhole()
- Parameters:
blackhole
- Indicates whether to drop traffic that matches this route.- Returns:
this
-
blackhole
Sets the value ofCfnTransitGatewayRouteProps.getBlackhole()
- Parameters:
blackhole
- Indicates whether to drop traffic that matches this route.- Returns:
this
-
destinationCidrBlock
@Stability(Stable) public CfnTransitGatewayRouteProps.Builder destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnTransitGatewayRouteProps.getDestinationCidrBlock()
- Parameters:
destinationCidrBlock
- The CIDR block used for destination matches.- Returns:
this
-
transitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayRouteProps.Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) Sets the value ofCfnTransitGatewayRouteProps.getTransitGatewayAttachmentId()
- Parameters:
transitGatewayAttachmentId
- The ID of the attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayRouteProps>
- Returns:
- a new instance of
CfnTransitGatewayRouteProps
- Throws:
NullPointerException
- if any required attribute was not provided
-