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