Interface CalculateRouteMatrixResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CalculateRouteMatrixResponse.Builder,CalculateRouteMatrixResponse>,GeoRoutesResponse.Builder,SdkBuilder<CalculateRouteMatrixResponse.Builder,CalculateRouteMatrixResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CalculateRouteMatrixResponse
public static interface CalculateRouteMatrixResponse.Builder extends GeoRoutesResponse.Builder, SdkPojo, CopyableBuilder<CalculateRouteMatrixResponse.Builder,CalculateRouteMatrixResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CalculateRouteMatrixResponse.BuildererrorCount(Integer errorCount)The count of error results in the route matrix.CalculateRouteMatrixResponse.BuilderpricingBucket(String pricingBucket)The pricing bucket for which the query is charged at.CalculateRouteMatrixResponse.BuilderrouteMatrix(Collection<? extends Collection<RouteMatrixEntry>> routeMatrix)The calculated route matrix containing the results for all pairs of Origins to Destination positions.CalculateRouteMatrixResponse.BuilderrouteMatrix(Collection<RouteMatrixEntry>... routeMatrix)The calculated route matrix containing the results for all pairs of Origins to Destination positions.default CalculateRouteMatrixResponse.BuilderroutingBoundary(Consumer<RouteMatrixBoundary.Builder> routingBoundary)Boundary within which the matrix is to be calculated.CalculateRouteMatrixResponse.BuilderroutingBoundary(RouteMatrixBoundary routingBoundary)Boundary within which the matrix is to be calculated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.georoutes.model.GeoRoutesResponse.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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
errorCount
CalculateRouteMatrixResponse.Builder errorCount(Integer errorCount)
The count of error results in the route matrix. If this number is 0, all routes were calculated successfully.
- Parameters:
errorCount- The count of error results in the route matrix. If this number is 0, all routes were calculated successfully.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pricingBucket
CalculateRouteMatrixResponse.Builder pricingBucket(String pricingBucket)
The pricing bucket for which the query is charged at.
- Parameters:
pricingBucket- The pricing bucket for which the query is charged at.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeMatrix
CalculateRouteMatrixResponse.Builder routeMatrix(Collection<? extends Collection<RouteMatrixEntry>> routeMatrix)
The calculated route matrix containing the results for all pairs of Origins to Destination positions. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destination positions.
- Parameters:
routeMatrix- The calculated route matrix containing the results for all pairs of Origins to Destination positions. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destination positions.- 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 Origins to Destination positions. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destination positions.
- Parameters:
routeMatrix- The calculated route matrix containing the results for all pairs of Origins to Destination positions. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destination positions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingBoundary
CalculateRouteMatrixResponse.Builder routingBoundary(RouteMatrixBoundary routingBoundary)
Boundary within which the matrix is to be calculated. All data, origins and destinations outside the boundary are considered invalid.
When request routing boundary was set as AutoCircle, the response routing boundary will return Circle derived from the AutoCircle settings.
- Parameters:
routingBoundary- Boundary within which the matrix is to be calculated. All data, origins and destinations outside the boundary are considered invalid.When request routing boundary was set as AutoCircle, the response routing boundary will return Circle derived from the AutoCircle settings.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routingBoundary
default CalculateRouteMatrixResponse.Builder routingBoundary(Consumer<RouteMatrixBoundary.Builder> routingBoundary)
Boundary within which the matrix is to be calculated. All data, origins and destinations outside the boundary are considered invalid.
This is a convenience method that creates an instance of theWhen request routing boundary was set as AutoCircle, the response routing boundary will return Circle derived from the AutoCircle settings.
RouteMatrixBoundary.Builderavoiding the need to create one manually viaRouteMatrixBoundary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toroutingBoundary(RouteMatrixBoundary).- Parameters:
routingBoundary- a consumer that will call methods onRouteMatrixBoundary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
routingBoundary(RouteMatrixBoundary)
-
-