Interface GrpcRouteMatch.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<GrpcRouteMatch.Builder,
,GrpcRouteMatch> SdkBuilder<GrpcRouteMatch.Builder,
,GrpcRouteMatch> SdkPojo
- Enclosing class:
GrpcRouteMatch
public static interface GrpcRouteMatch.Builder
extends SdkPojo, CopyableBuilder<GrpcRouteMatch.Builder,GrpcRouteMatch>
-
Method Summary
Modifier and TypeMethodDescriptionmetadata
(Collection<GrpcRouteMetadata> metadata) An object that represents the data to match from the request.metadata
(Consumer<GrpcRouteMetadata.Builder>... metadata) An object that represents the data to match from the request.metadata
(GrpcRouteMetadata... metadata) An object that represents the data to match from the request.methodName
(String methodName) The method name to match from the request.The port number to match on.serviceName
(String serviceName) The fully qualified domain name for the service to match from the request.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 Details
-
metadata
An object that represents the data to match from the request.
- Parameters:
metadata
- An object that represents the data to match from the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
An object that represents the data to match from the request.
- Parameters:
metadata
- An object that represents the data to match from the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
An object that represents the data to match from the request.
This is a convenience method that creates an instance of theGrpcRouteMetadata.Builder
avoiding the need to create one manually viaGrpcRouteMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadata(List<GrpcRouteMetadata>)
.- Parameters:
metadata
- a consumer that will call methods onGrpcRouteMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
methodName
The method name to match from the request. If you specify a name, you must also specify a
serviceName
.- Parameters:
methodName
- The method name to match from the request. If you specify a name, you must also specify aserviceName
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
port
The port number to match on.
- Parameters:
port
- The port number to match on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceName
The fully qualified domain name for the service to match from the request.
- Parameters:
serviceName
- The fully qualified domain name for the service to match from the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-