Interface CalculateRouteMatrixResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CalculateRouteMatrixResponse.Builder,CalculateRouteMatrixResponse>,LocationResponse.Builder,SdkBuilder<CalculateRouteMatrixResponse.Builder,CalculateRouteMatrixResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CalculateRouteMatrixResponse
public static interface CalculateRouteMatrixResponse.Builder extends LocationResponse.Builder, SdkPojo, CopyableBuilder<CalculateRouteMatrixResponse.Builder,CalculateRouteMatrixResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CalculateRouteMatrixResponse.BuilderrouteMatrix(Collection<? extends Collection<RouteMatrixEntry>> routeMatrix)The calculated route matrix containing the results for all pairs ofDeparturePositionstoDestinationPositions.CalculateRouteMatrixResponse.BuilderrouteMatrix(Collection<RouteMatrixEntry>... routeMatrix)The calculated route matrix containing the results for all pairs ofDeparturePositionstoDestinationPositions.CalculateRouteMatrixResponse.BuildersnappedDeparturePositions(Collection<? extends Collection<Double>> snappedDeparturePositions)For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road.CalculateRouteMatrixResponse.BuildersnappedDeparturePositions(Collection<Double>... snappedDeparturePositions)For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road.CalculateRouteMatrixResponse.BuildersnappedDestinationPositions(Collection<? extends Collection<Double>> snappedDestinationPositions)The list of destination positions for the route matrix used for calculation of theRouteMatrix.CalculateRouteMatrixResponse.BuildersnappedDestinationPositions(Collection<Double>... snappedDestinationPositions)The list of destination positions for the route matrix used for calculation of theRouteMatrix.default CalculateRouteMatrixResponse.Buildersummary(Consumer<CalculateRouteMatrixSummary.Builder> summary)Contains information about the route matrix,DataSource,DistanceUnit,RouteCountandErrorCount.CalculateRouteMatrixResponse.Buildersummary(CalculateRouteMatrixSummary summary)Contains information about the route matrix,DataSource,DistanceUnit,RouteCountandErrorCount.-
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 Detail
-
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
CalculateRouteMatrixResponse.Builder routeMatrix(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.
-
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
CalculateRouteMatrixResponse.Builder summary(CalculateRouteMatrixSummary 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:
summary(CalculateRouteMatrixSummary)
-
-