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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaNetworkRouteDestination.builder().When the
Consumercompletes,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
activeandblackhole.- Parameters:
state- The route state. The possible values areactiveandblackhole.- 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
activeandblackhole.- Parameters:
state- The route state. The possible values areactiveandblackhole.- 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
propagatedandstatic.- Parameters:
type- The route type. The possible values arepropagatedandstatic.- 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
propagatedandstatic.- Parameters:
type- The route type. The possible values arepropagatedandstatic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-