Interface TransitGatewayRoute.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TransitGatewayRoute.Builder,
,TransitGatewayRoute> SdkBuilder<TransitGatewayRoute.Builder,
,TransitGatewayRoute> SdkPojo
- Enclosing class:
TransitGatewayRoute
public static interface TransitGatewayRoute.Builder
extends SdkPojo, CopyableBuilder<TransitGatewayRoute.Builder,TransitGatewayRoute>
-
Method Summary
Modifier and TypeMethodDescriptiondestinationCidrBlock
(String destinationCidrBlock) The CIDR block used for destination matches.prefixListId
(String prefixListId) The ID of the prefix list used for destination matches.The state of the route.state
(TransitGatewayRouteState state) The state of the route.transitGatewayAttachments
(Collection<TransitGatewayRouteAttachment> transitGatewayAttachments) The attachments.transitGatewayAttachments
(Consumer<TransitGatewayRouteAttachment.Builder>... transitGatewayAttachments) The attachments.transitGatewayAttachments
(TransitGatewayRouteAttachment... transitGatewayAttachments) The attachments.transitGatewayRouteTableAnnouncementId
(String transitGatewayRouteTableAnnouncementId) The ID of the transit gateway route table announcement.The route type.type
(TransitGatewayRouteType type) The route type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
destinationCidrBlock
The CIDR block used for destination matches.
- Parameters:
destinationCidrBlock
- The CIDR block used for destination matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixListId
The ID of the prefix list used for destination matches.
- Parameters:
prefixListId
- The ID of the prefix list used for destination matches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayRouteTableAnnouncementId
TransitGatewayRoute.Builder transitGatewayRouteTableAnnouncementId(String transitGatewayRouteTableAnnouncementId) The ID of the transit gateway route table announcement.
- Parameters:
transitGatewayRouteTableAnnouncementId
- The ID of the transit gateway route table announcement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayAttachments
TransitGatewayRoute.Builder transitGatewayAttachments(Collection<TransitGatewayRouteAttachment> transitGatewayAttachments) The attachments.
- Parameters:
transitGatewayAttachments
- The attachments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayAttachments
TransitGatewayRoute.Builder transitGatewayAttachments(TransitGatewayRouteAttachment... transitGatewayAttachments) The attachments.
- Parameters:
transitGatewayAttachments
- The attachments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayAttachments
TransitGatewayRoute.Builder transitGatewayAttachments(Consumer<TransitGatewayRouteAttachment.Builder>... transitGatewayAttachments) The attachments.
This is a convenience method that creates an instance of theTransitGatewayRouteAttachment.Builder
avoiding the need to create one manually viaTransitGatewayRouteAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totransitGatewayAttachments(List<TransitGatewayRouteAttachment>)
.- Parameters:
transitGatewayAttachments
- a consumer that will call methods onTransitGatewayRouteAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The route type.
- Parameters:
type
- The route type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The route type.
- Parameters:
type
- The route type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the route.
- Parameters:
state
- The state of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the route.
- Parameters:
state
- The state of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-