Class CfnTransitGatewayRouteTableAssociation.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteTableAssociation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayRouteTableAssociation>
- Enclosing class:
- CfnTransitGatewayRouteTableAssociation
@Stability(Stable)
public static final class CfnTransitGatewayRouteTableAssociation.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayRouteTableAssociation>
A fluent builder for
CfnTransitGatewayRouteTableAssociation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()transitGatewayAttachmentId(String transitGatewayAttachmentId) The ID of the attachment.transitGatewayRouteTableId(String transitGatewayRouteTableId) The ID of the route table for the transit gateway.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitGatewayRouteTableAssociation.Builder create(Construct scope, String id) - Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnTransitGatewayRouteTableAssociation.Builder.
-
transitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayRouteTableAssociation.Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) The ID of the attachment.- Parameters:
transitGatewayAttachmentId- The ID of the attachment. This parameter is required.- Returns:
this
-
transitGatewayRouteTableId
@Stability(Stable) public CfnTransitGatewayRouteTableAssociation.Builder transitGatewayRouteTableId(String transitGatewayRouteTableId) The ID of the route table for the transit gateway.- Parameters:
transitGatewayRouteTableId- The ID of the route table for the transit gateway. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayRouteTableAssociation>- Returns:
- a newly built instance of
CfnTransitGatewayRouteTableAssociation.
-