Interface CalculateRouteMatrixResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CalculateRouteMatrixResponse.Builder,
,CalculateRouteMatrixResponse> LocationResponse.Builder
,SdkBuilder<CalculateRouteMatrixResponse.Builder,
,CalculateRouteMatrixResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CalculateRouteMatrixResponse
-
Method Summary
Modifier and TypeMethodDescriptionrouteMatrix
(Collection<? extends Collection<RouteMatrixEntry>> routeMatrix) The calculated route matrix containing the results for all pairs ofDeparturePositions
toDestinationPositions
.routeMatrix
(Collection<RouteMatrixEntry>... routeMatrix) The calculated route matrix containing the results for all pairs ofDeparturePositions
toDestinationPositions
.snappedDeparturePositions
(Collection<? extends Collection<Double>> snappedDeparturePositions) For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road.snappedDeparturePositions
(Collection<Double>... snappedDeparturePositions) For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road.snappedDestinationPositions
(Collection<? extends Collection<Double>> snappedDestinationPositions) The list of destination positions for the route matrix used for calculation of theRouteMatrix
.snappedDestinationPositions
(Collection<Double>... snappedDestinationPositions) The list of destination positions for the route matrix used for calculation of theRouteMatrix
.Contains information about the route matrix,DataSource
,DistanceUnit
,RouteCount
andErrorCount
.summary
(CalculateRouteMatrixSummary summary) Contains information about the route matrix,DataSource
,DistanceUnit
,RouteCount
andErrorCount
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.location.model.LocationResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
routeMatrix
CalculateRouteMatrixResponse.Builder routeMatrix(Collection<? extends Collection<RouteMatrixEntry>> routeMatrix) The calculated route matrix containing the results for all pairs of
DeparturePositions
toDestinationPositions
. Each row corresponds to one entry inDeparturePositions
. Each entry in the row corresponds to the route from that entry inDeparturePositions
to an entry inDestinationPositions
.- Parameters:
routeMatrix
- The calculated route matrix containing the results for all pairs ofDeparturePositions
toDestinationPositions
. Each row corresponds to one entry inDeparturePositions
. Each entry in the row corresponds to the route from that entry inDeparturePositions
to an entry inDestinationPositions
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeMatrix
The calculated route matrix containing the results for all pairs of
DeparturePositions
toDestinationPositions
. Each row corresponds to one entry inDeparturePositions
. Each entry in the row corresponds to the route from that entry inDeparturePositions
to an entry inDestinationPositions
.- Parameters:
routeMatrix
- The calculated route matrix containing the results for all pairs ofDeparturePositions
toDestinationPositions
. Each row corresponds to one entry inDeparturePositions
. Each entry in the row corresponds to the route from that entry inDeparturePositions
to an entry inDestinationPositions
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snappedDeparturePositions
CalculateRouteMatrixResponse.Builder snappedDeparturePositions(Collection<? extends Collection<Double>> snappedDeparturePositions) For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of the
RouteMatrix
.- Parameters:
snappedDeparturePositions
- For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of theRouteMatrix
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snappedDeparturePositions
CalculateRouteMatrixResponse.Builder snappedDeparturePositions(Collection<Double>... snappedDeparturePositions) For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of the
RouteMatrix
.- Parameters:
snappedDeparturePositions
- For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of theRouteMatrix
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snappedDestinationPositions
CalculateRouteMatrixResponse.Builder snappedDestinationPositions(Collection<? extends Collection<Double>> snappedDestinationPositions) The list of destination positions for the route matrix used for calculation of the
RouteMatrix
.- Parameters:
snappedDestinationPositions
- The list of destination positions for the route matrix used for calculation of theRouteMatrix
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snappedDestinationPositions
CalculateRouteMatrixResponse.Builder snappedDestinationPositions(Collection<Double>... snappedDestinationPositions) The list of destination positions for the route matrix used for calculation of the
RouteMatrix
.- Parameters:
snappedDestinationPositions
- The list of destination positions for the route matrix used for calculation of theRouteMatrix
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
Contains information about the route matrix,
DataSource
,DistanceUnit
,RouteCount
andErrorCount
.- Parameters:
summary
- Contains information about the route matrix,DataSource
,DistanceUnit
,RouteCount
andErrorCount
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
default CalculateRouteMatrixResponse.Builder summary(Consumer<CalculateRouteMatrixSummary.Builder> summary) Contains information about the route matrix,
This is a convenience method that creates an instance of theDataSource
,DistanceUnit
,RouteCount
andErrorCount
.CalculateRouteMatrixSummary.Builder
avoiding the need to create one manually viaCalculateRouteMatrixSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosummary(CalculateRouteMatrixSummary)
.- Parameters:
summary
- a consumer that will call methods onCalculateRouteMatrixSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-