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
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
destinationCidrBlock
TransitGatewayRoute.Builder destinationCidrBlock(String 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
TransitGatewayRoute.Builder prefixListId(String 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.Builderavoiding the need to create one manually viaTransitGatewayRouteAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#transitGatewayAttachments(List.) - 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:
#transitGatewayAttachments(java.util.Collection)
-
type
TransitGatewayRoute.Builder type(String 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:
TransitGatewayRouteType,TransitGatewayRouteType
-
type
TransitGatewayRoute.Builder type(TransitGatewayRouteType 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:
TransitGatewayRouteType,TransitGatewayRouteType
-
state
TransitGatewayRoute.Builder state(String 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:
TransitGatewayRouteState,TransitGatewayRouteState
-
state
TransitGatewayRoute.Builder state(TransitGatewayRouteState 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:
TransitGatewayRouteState,TransitGatewayRouteState
-
-