Interface SnapToRoadsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SnapToRoadsRequest.Builder,
,SnapToRoadsRequest> GeoRoutesRequest.Builder
,SdkBuilder<SnapToRoadsRequest.Builder,
,SnapToRoadsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SnapToRoadsRequest
-
Method Summary
Modifier and TypeMethodDescriptionOptional: The API key to be used for authorization.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.snappedGeometryFormat
(String snappedGeometryFormat) Chooses what the returned SnappedGeometry format should be.snappedGeometryFormat
(GeometryFormat snappedGeometryFormat) Chooses what the returned SnappedGeometry format should be.snapRadius
(Long snapRadius) The radius around the provided tracepoint that is considered for snapping.tracePoints
(Collection<RoadSnapTracePoint> tracePoints) List of trace points to be snapped onto the road network.tracePoints
(Consumer<RoadSnapTracePoint.Builder>... tracePoints) List of trace points to be snapped onto the road network.tracePoints
(RoadSnapTracePoint... tracePoints) List of trace points to be snapped onto the road network.travelMode
(String travelMode) Specifies the mode of transport when calculating a route.travelMode
(RoadSnapTravelMode travelMode) Specifies the mode of transport when calculating a route.default SnapToRoadsRequest.Builder
travelModeOptions
(Consumer<RoadSnapTravelModeOptions.Builder> travelModeOptions) Travel mode related options for the provided travel mode.travelModeOptions
(RoadSnapTravelModeOptions travelModeOptions) Travel mode related options for the provided travel mode.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.georoutes.model.GeoRoutesRequest.Builder
build
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
-
key
Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
- Parameters:
key
- Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snappedGeometryFormat
Chooses what the returned SnappedGeometry format should be.
Default Value:
FlexiblePolyline
- Parameters:
snappedGeometryFormat
- Chooses what the returned SnappedGeometry format should be.Default Value:
FlexiblePolyline
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
snappedGeometryFormat
Chooses what the returned SnappedGeometry format should be.
Default Value:
FlexiblePolyline
- Parameters:
snappedGeometryFormat
- Chooses what the returned SnappedGeometry format should be.Default Value:
FlexiblePolyline
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
snapRadius
The radius around the provided tracepoint that is considered for snapping.
Unit:
meters
Default value:
300
- Parameters:
snapRadius
- The radius around the provided tracepoint that is considered for snapping.Unit:
meters
Default value:
300
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tracePoints
List of trace points to be snapped onto the road network.
- Parameters:
tracePoints
- List of trace points to be snapped onto the road network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tracePoints
List of trace points to be snapped onto the road network.
- Parameters:
tracePoints
- List of trace points to be snapped onto the road network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tracePoints
List of trace points to be snapped onto the road network.
This is a convenience method that creates an instance of theRoadSnapTracePoint.Builder
avoiding the need to create one manually viaRoadSnapTracePoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totracePoints(List<RoadSnapTracePoint>)
.- Parameters:
tracePoints
- a consumer that will call methods onRoadSnapTracePoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelMode
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Default Value:
Car
- Parameters:
travelMode
- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.Default Value:
Car
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelMode
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Default Value:
Car
- Parameters:
travelMode
- Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.Default Value:
Car
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
travelModeOptions
Travel mode related options for the provided travel mode.
- Parameters:
travelModeOptions
- Travel mode related options for the provided travel mode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
travelModeOptions
default SnapToRoadsRequest.Builder travelModeOptions(Consumer<RoadSnapTravelModeOptions.Builder> travelModeOptions) Travel mode related options for the provided travel mode.
This is a convenience method that creates an instance of theRoadSnapTravelModeOptions.Builder
avoiding the need to create one manually viaRoadSnapTravelModeOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totravelModeOptions(RoadSnapTravelModeOptions)
.- Parameters:
travelModeOptions
- a consumer that will call methods onRoadSnapTravelModeOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SnapToRoadsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SnapToRoadsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-