Interface NetworkRoute.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<NetworkRoute.Builder,NetworkRoute>,SdkBuilder<NetworkRoute.Builder,NetworkRoute>,SdkPojo
- Enclosing class:
- NetworkRoute
public static interface NetworkRoute.Builder extends SdkPojo, CopyableBuilder<NetworkRoute.Builder,NetworkRoute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NetworkRoute.BuilderdestinationCidrBlock(String destinationCidrBlock)A unique identifier for the route, such as a CIDR block.NetworkRoute.Builderdestinations(Collection<NetworkRouteDestination> destinations)The destinations.NetworkRoute.Builderdestinations(Consumer<NetworkRouteDestination.Builder>... destinations)The destinations.NetworkRoute.Builderdestinations(NetworkRouteDestination... destinations)The destinations.NetworkRoute.BuilderprefixListId(String prefixListId)The ID of the prefix list.NetworkRoute.Builderstate(String state)The route state.NetworkRoute.Builderstate(RouteState state)The route state.NetworkRoute.Buildertype(String type)The route type.NetworkRoute.Buildertype(RouteType 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 Detail
-
destinationCidrBlock
NetworkRoute.Builder destinationCidrBlock(String 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
NetworkRoute.Builder destinations(Collection<NetworkRouteDestination> destinations)
The destinations.
- Parameters:
destinations- The destinations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
NetworkRoute.Builder destinations(NetworkRouteDestination... destinations)
The destinations.
- Parameters:
destinations- The destinations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
NetworkRoute.Builder destinations(Consumer<NetworkRouteDestination.Builder>... 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 to#destinations(List.) - 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:
#destinations(java.util.Collection)
-
prefixListId
NetworkRoute.Builder prefixListId(String 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
NetworkRoute.Builder state(String 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:
RouteState,RouteState
-
state
NetworkRoute.Builder state(RouteState 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:
RouteState,RouteState
-
type
NetworkRoute.Builder type(String type)
The route type. The possible values are
propagatedandstatic.
-
type
NetworkRoute.Builder type(RouteType type)
The route type. The possible values are
propagatedandstatic.
-
-