Interface TcpRoute.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TcpRoute.Builder,
,TcpRoute> SdkBuilder<TcpRoute.Builder,
,TcpRoute> SdkPojo
- Enclosing class:
TcpRoute
@Mutable
@NotThreadSafe
public static interface TcpRoute.Builder
extends SdkPojo, CopyableBuilder<TcpRoute.Builder,TcpRoute>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TcpRoute.Builder
action
(Consumer<TcpRouteAction.Builder> action) The action to take if a match is determined.action
(TcpRouteAction action) The action to take if a match is determined.default TcpRoute.Builder
match
(Consumer<TcpRouteMatch.Builder> match) An object that represents the criteria for determining a request match.match
(TcpRouteMatch match) An object that represents the criteria for determining a request match.default TcpRoute.Builder
timeout
(Consumer<TcpTimeout.Builder> timeout) An object that represents types of timeouts.timeout
(TcpTimeout timeout) An object that represents types of timeouts.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
-
action
The action to take if a match is determined.
- Parameters:
action
- The action to take if a match is determined.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action to take if a match is determined.
This is a convenience method that creates an instance of theTcpRouteAction.Builder
avoiding the need to create one manually viaTcpRouteAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaction(TcpRouteAction)
.- Parameters:
action
- a consumer that will call methods onTcpRouteAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
match
An object that represents the criteria for determining a request match.
- Parameters:
match
- An object that represents the criteria for determining a request match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
match
An object that represents the criteria for determining a request match.
This is a convenience method that creates an instance of theTcpRouteMatch.Builder
avoiding the need to create one manually viaTcpRouteMatch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomatch(TcpRouteMatch)
.- Parameters:
match
- a consumer that will call methods onTcpRouteMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeout
An object that represents types of timeouts.
- Parameters:
timeout
- An object that represents types of timeouts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
An object that represents types of timeouts.
This is a convenience method that creates an instance of theTcpTimeout.Builder
avoiding the need to create one manually viaTcpTimeout.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeout(TcpTimeout)
.- Parameters:
timeout
- a consumer that will call methods onTcpTimeout.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-