Interface NetworkRoute.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<NetworkRoute.Builder,
,NetworkRoute> SdkBuilder<NetworkRoute.Builder,
,NetworkRoute> SdkPojo
- Enclosing class:
NetworkRoute
@Mutable
@NotThreadSafe
public static interface NetworkRoute.Builder
extends SdkPojo, CopyableBuilder<NetworkRoute.Builder,NetworkRoute>
-
Method Summary
Modifier and TypeMethodDescriptiondestinationCidrBlock
(String destinationCidrBlock) A unique identifier for the route, such as a CIDR block.destinations
(Collection<NetworkRouteDestination> destinations) The destinations.destinations
(Consumer<NetworkRouteDestination.Builder>... destinations) The destinations.destinations
(NetworkRouteDestination... destinations) The destinations.prefixListId
(String prefixListId) The ID of the prefix list.The route state.state
(RouteState state) The route state.The route 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, sdkFieldNameToField, sdkFields
-
Method Details
-
destinationCidrBlock
A unique identifier for the route, such as a CIDR block.
- Parameters:
destinationCidrBlock
- A unique identifier for the route, such as a CIDR block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
The destinations.
- Parameters:
destinations
- The destinations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
The destinations.
- Parameters:
destinations
- The destinations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
The destinations.
This is a convenience method that creates an instance of theNetworkRouteDestination.Builder
avoiding the need to create one manually viaNetworkRouteDestination.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinations(List<NetworkRouteDestination>)
.- Parameters:
destinations
- a consumer that will call methods onNetworkRouteDestination.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
prefixListId
The ID of the prefix list.
- Parameters:
prefixListId
- The ID of the prefix list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The route state. The possible values are
active
andblackhole
.- Parameters:
state
- The route state. The possible values areactive
andblackhole
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The route state. The possible values are
active
andblackhole
.- Parameters:
state
- The route state. The possible values areactive
andblackhole
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The route type. The possible values are
propagated
andstatic
.- Parameters:
type
- The route type. The possible values arepropagated
andstatic
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The route type. The possible values are
propagated
andstatic
.- Parameters:
type
- The route type. The possible values arepropagated
andstatic
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-