Interface RouteTableAssociation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RouteTableAssociation.Builder,
,RouteTableAssociation> SdkBuilder<RouteTableAssociation.Builder,
,RouteTableAssociation> SdkPojo
- Enclosing class:
RouteTableAssociation
public static interface RouteTableAssociation.Builder
extends SdkPojo, CopyableBuilder<RouteTableAssociation.Builder,RouteTableAssociation>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RouteTableAssociation.Builder
associationState
(Consumer<RouteTableAssociationState.Builder> associationState) The state of the association.associationState
(RouteTableAssociationState associationState) The state of the association.The ID of the internet gateway or virtual private gateway.Indicates whether this is the main route table.routeTableAssociationId
(String routeTableAssociationId) The ID of the association.routeTableId
(String routeTableId) The ID of the route table.The ID of the subnet.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
-
main
Indicates whether this is the main route table.
- Parameters:
main
- Indicates whether this is the main route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeTableAssociationId
The ID of the association.
- Parameters:
routeTableAssociationId
- The ID of the association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeTableId
The ID of the route table.
- Parameters:
routeTableId
- The ID of the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The ID of the subnet. A subnet ID is not returned for an implicit association.
- Parameters:
subnetId
- The ID of the subnet. A subnet ID is not returned for an implicit association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatewayId
The ID of the internet gateway or virtual private gateway.
- Parameters:
gatewayId
- The ID of the internet gateway or virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associationState
The state of the association.
- Parameters:
associationState
- The state of the association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associationState
default RouteTableAssociation.Builder associationState(Consumer<RouteTableAssociationState.Builder> associationState) The state of the association.
This is a convenience method that creates an instance of theRouteTableAssociationState.Builder
avoiding the need to create one manually viaRouteTableAssociationState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassociationState(RouteTableAssociationState)
.- Parameters:
associationState
- a consumer that will call methods onRouteTableAssociationState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-