Interface GrpcRoute.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<GrpcRoute.Builder,GrpcRoute>,SdkBuilder<GrpcRoute.Builder,GrpcRoute>,SdkPojo
- Enclosing class:
- GrpcRoute
public static interface GrpcRoute.Builder extends SdkPojo, CopyableBuilder<GrpcRoute.Builder,GrpcRoute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GrpcRoute.Builderaction(Consumer<GrpcRouteAction.Builder> action)An object that represents the action to take if a match is determined.GrpcRoute.Builderaction(GrpcRouteAction action)An object that represents the action to take if a match is determined.default GrpcRoute.Buildermatch(Consumer<GrpcRouteMatch.Builder> match)An object that represents the criteria for determining a request match.GrpcRoute.Buildermatch(GrpcRouteMatch match)An object that represents the criteria for determining a request match.default GrpcRoute.BuilderretryPolicy(Consumer<GrpcRetryPolicy.Builder> retryPolicy)An object that represents a retry policy.GrpcRoute.BuilderretryPolicy(GrpcRetryPolicy retryPolicy)An object that represents a retry policy.default GrpcRoute.Buildertimeout(Consumer<GrpcTimeout.Builder> timeout)An object that represents types of timeouts.GrpcRoute.Buildertimeout(GrpcTimeout 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, sdkFields
-
-
-
-
Method Detail
-
action
GrpcRoute.Builder action(GrpcRouteAction action)
An object that represents the action to take if a match is determined.
- Parameters:
action- An object that represents 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
default GrpcRoute.Builder action(Consumer<GrpcRouteAction.Builder> action)
An object that represents the action to take if a match is determined.
This is a convenience method that creates an instance of theGrpcRouteAction.Builderavoiding the need to create one manually viaGrpcRouteAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(GrpcRouteAction).- Parameters:
action- a consumer that will call methods onGrpcRouteAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
action(GrpcRouteAction)
-
match
GrpcRoute.Builder match(GrpcRouteMatch 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
default GrpcRoute.Builder match(Consumer<GrpcRouteMatch.Builder> match)
An object that represents the criteria for determining a request match.
This is a convenience method that creates an instance of theGrpcRouteMatch.Builderavoiding the need to create one manually viaGrpcRouteMatch.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomatch(GrpcRouteMatch).- Parameters:
match- a consumer that will call methods onGrpcRouteMatch.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
match(GrpcRouteMatch)
-
retryPolicy
GrpcRoute.Builder retryPolicy(GrpcRetryPolicy retryPolicy)
An object that represents a retry policy.
- Parameters:
retryPolicy- An object that represents a retry policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryPolicy
default GrpcRoute.Builder retryPolicy(Consumer<GrpcRetryPolicy.Builder> retryPolicy)
An object that represents a retry policy.
This is a convenience method that creates an instance of theGrpcRetryPolicy.Builderavoiding the need to create one manually viaGrpcRetryPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretryPolicy(GrpcRetryPolicy).- Parameters:
retryPolicy- a consumer that will call methods onGrpcRetryPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retryPolicy(GrpcRetryPolicy)
-
timeout
GrpcRoute.Builder timeout(GrpcTimeout 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
default GrpcRoute.Builder timeout(Consumer<GrpcTimeout.Builder> timeout)
An object that represents types of timeouts.
This is a convenience method that creates an instance of theGrpcTimeout.Builderavoiding the need to create one manually viaGrpcTimeout.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimeout(GrpcTimeout).- Parameters:
timeout- a consumer that will call methods onGrpcTimeout.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
timeout(GrpcTimeout)
-
-