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 ofDeparturePositionstoDestinationPositions.routeMatrix(Collection<RouteMatrixEntry>... routeMatrix) The calculated route matrix containing the results for all pairs ofDeparturePositionstoDestinationPositions.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,RouteCountandErrorCount.summary(CalculateRouteMatrixSummary summary) Contains information about the route matrix,DataSource,DistanceUnit,RouteCountandErrorCount.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.location.model.LocationResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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
DeparturePositionstoDestinationPositions. Each row corresponds to one entry inDeparturePositions. Each entry in the row corresponds to the route from that entry inDeparturePositionsto an entry inDestinationPositions.- Parameters:
routeMatrix- The calculated route matrix containing the results for all pairs ofDeparturePositionstoDestinationPositions. Each row corresponds to one entry inDeparturePositions. Each entry in the row corresponds to the route from that entry inDeparturePositionsto 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
DeparturePositionstoDestinationPositions. Each row corresponds to one entry inDeparturePositions. Each entry in the row corresponds to the route from that entry inDeparturePositionsto an entry inDestinationPositions.- Parameters:
routeMatrix- The calculated route matrix containing the results for all pairs ofDeparturePositionstoDestinationPositions. Each row corresponds to one entry inDeparturePositions. Each entry in the row corresponds to the route from that entry inDeparturePositionsto 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,RouteCountandErrorCount.- Parameters:
summary- Contains information about the route matrix,DataSource,DistanceUnit,RouteCountandErrorCount.- 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,RouteCountandErrorCount.CalculateRouteMatrixSummary.Builderavoiding the need to create one manually viaCalculateRouteMatrixSummary.builder().When the
Consumercompletes,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:
-