Class CfnTransitGatewayRouteTableAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRouteTableAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayRouteTableAttachmentProps>
- Enclosing interface:
CfnTransitGatewayRouteTableAttachmentProps
@Stability(Stable)
public static final class CfnTransitGatewayRouteTableAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayRouteTableAttachmentProps>
A builder for
CfnTransitGatewayRouteTableAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getPeeringId()
proposedSegmentChange
(IResolvable proposedSegmentChange) Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getProposedSegmentChange()
proposedSegmentChange
(CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangeProperty proposedSegmentChange) Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getProposedSegmentChange()
Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getTags()
transitGatewayRouteTableArn
(String transitGatewayRouteTableArn)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
peeringId
@Stability(Stable) public CfnTransitGatewayRouteTableAttachmentProps.Builder peeringId(String peeringId) Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getPeeringId()
- Parameters:
peeringId
- The ID of the transit gateway peering. This parameter is required.- Returns:
this
-
transitGatewayRouteTableArn
@Stability(Stable) public CfnTransitGatewayRouteTableAttachmentProps.Builder transitGatewayRouteTableArn(String transitGatewayRouteTableArn) - Parameters:
transitGatewayRouteTableArn
- The ARN of the transit gateway attachment route table. This parameter is required. For example,"TransitGatewayRouteTableArn": "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456"
.- Returns:
this
-
proposedSegmentChange
@Stability(Stable) public CfnTransitGatewayRouteTableAttachmentProps.Builder proposedSegmentChange(IResolvable proposedSegmentChange) Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getProposedSegmentChange()
- Parameters:
proposedSegmentChange
- This property is read-only. Values can't be assigned to it.- Returns:
this
-
proposedSegmentChange
@Stability(Stable) public CfnTransitGatewayRouteTableAttachmentProps.Builder proposedSegmentChange(CfnTransitGatewayRouteTableAttachment.ProposedSegmentChangeProperty proposedSegmentChange) Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getProposedSegmentChange()
- Parameters:
proposedSegmentChange
- This property is read-only. Values can't be assigned to it.- Returns:
this
-
tags
@Stability(Stable) public CfnTransitGatewayRouteTableAttachmentProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnTransitGatewayRouteTableAttachmentProps.getTags()
- Parameters:
tags
- The list of key-value pairs associated with the transit gateway route table attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayRouteTableAttachmentProps>
- Returns:
- a new instance of
CfnTransitGatewayRouteTableAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-