Interface CalculateRouteMatrixRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CalculateRouteMatrixRequest.Builder,CalculateRouteMatrixRequest>,GeoRoutesRequest.Builder,SdkBuilder<CalculateRouteMatrixRequest.Builder,CalculateRouteMatrixRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CalculateRouteMatrixRequest
public static interface CalculateRouteMatrixRequest.Builder extends GeoRoutesRequest.Builder, SdkPojo, CopyableBuilder<CalculateRouteMatrixRequest.Builder,CalculateRouteMatrixRequest>
-
-
Method Summary
-
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 Detail
-
allow
CalculateRouteMatrixRequest.Builder allow(RouteMatrixAllowOptions allow)
Features that are allowed while calculating. a route
- Parameters:
allow- Features that are allowed while calculating. a route- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allow
default CalculateRouteMatrixRequest.Builder allow(Consumer<RouteMatrixAllowOptions.Builder> allow)
Features that are allowed while calculating. a route
This is a convenience method that creates an instance of theRouteMatrixAllowOptions.Builderavoiding the need to create one manually viaRouteMatrixAllowOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallow(RouteMatrixAllowOptions).- Parameters:
allow- a consumer that will call methods onRouteMatrixAllowOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
allow(RouteMatrixAllowOptions)
-
avoid
CalculateRouteMatrixRequest.Builder avoid(RouteMatrixAvoidanceOptions avoid)
Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.
- Parameters:
avoid- Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
avoid
default CalculateRouteMatrixRequest.Builder avoid(Consumer<RouteMatrixAvoidanceOptions.Builder> avoid)
Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.
This is a convenience method that creates an instance of theRouteMatrixAvoidanceOptions.Builderavoiding the need to create one manually viaRouteMatrixAvoidanceOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toavoid(RouteMatrixAvoidanceOptions).- Parameters:
avoid- a consumer that will call methods onRouteMatrixAvoidanceOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
avoid(RouteMatrixAvoidanceOptions)
-
departNow
CalculateRouteMatrixRequest.Builder departNow(Boolean departNow)
Uses the current time as the time of departure.
- Parameters:
departNow- Uses the current time as the time of departure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
departureTime
CalculateRouteMatrixRequest.Builder departureTime(String departureTime)
Time of departure from thr origin.
Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mmExamples:
2020-04-22T17:57:24Z2020-04-22T17:57:24+02:00- Parameters:
departureTime- Time of departure from thr origin.Time format:
YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mmExamples:
2020-04-22T17:57:24Z2020-04-22T17:57:24+02:00- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
CalculateRouteMatrixRequest.Builder destinations(Collection<RouteMatrixDestination> destinations)
List of destinations for the route.
- Parameters:
destinations- List of destinations for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
CalculateRouteMatrixRequest.Builder destinations(RouteMatrixDestination... destinations)
List of destinations for the route.
- Parameters:
destinations- List of destinations for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinations
CalculateRouteMatrixRequest.Builder destinations(Consumer<RouteMatrixDestination.Builder>... destinations)
List of destinations for the route.
This is a convenience method that creates an instance of theRouteMatrixDestination.Builderavoiding the need to create one manually viaRouteMatrixDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#destinations(List.) - Parameters:
destinations- a consumer that will call methods onRouteMatrixDestination.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#destinations(java.util.Collection)
-
exclude
CalculateRouteMatrixRequest.Builder exclude(RouteMatrixExclusionOptions exclude)
Features to be strictly excluded while calculating the route.
- Parameters:
exclude- Features to be strictly excluded while calculating the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclude
default CalculateRouteMatrixRequest.Builder exclude(Consumer<RouteMatrixExclusionOptions.Builder> exclude)
Features to be strictly excluded while calculating the route.
This is a convenience method that creates an instance of theRouteMatrixExclusionOptions.Builderavoiding the need to create one manually viaRouteMatrixExclusionOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexclude(RouteMatrixExclusionOptions).- Parameters:
exclude- a consumer that will call methods onRouteMatrixExclusionOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
exclude(RouteMatrixExclusionOptions)
-
key
CalculateRouteMatrixRequest.Builder key(String 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.
-
optimizeRoutingFor
CalculateRouteMatrixRequest.Builder optimizeRoutingFor(String optimizeRoutingFor)
Specifies the optimization criteria for calculating a route.
Default Value:
FastestRoute- Parameters:
optimizeRoutingFor- Specifies the optimization criteria for calculating a route.Default Value:
FastestRoute- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RoutingObjective,RoutingObjective
-
optimizeRoutingFor
CalculateRouteMatrixRequest.Builder optimizeRoutingFor(RoutingObjective optimizeRoutingFor)
Specifies the optimization criteria for calculating a route.
Default Value:
FastestRoute- Parameters:
optimizeRoutingFor- Specifies the optimization criteria for calculating a route.Default Value:
FastestRoute- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RoutingObjective,RoutingObjective
-
origins
CalculateRouteMatrixRequest.Builder origins(Collection<RouteMatrixOrigin> origins)
The position in longitude and latitude for the origin.
- Parameters:
origins- The position in longitude and latitude for the origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origins
CalculateRouteMatrixRequest.Builder origins(RouteMatrixOrigin... origins)
The position in longitude and latitude for the origin.
- Parameters:
origins- The position in longitude and latitude for the origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
origins
CalculateRouteMatrixRequest.Builder origins(Consumer<RouteMatrixOrigin.Builder>... origins)
The position in longitude and latitude for the origin.
This is a convenience method that creates an instance of theRouteMatrixOrigin.Builderavoiding the need to create one manually viaRouteMatrixOrigin.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#origins(List.) - Parameters:
origins- a consumer that will call methods onRouteMatrixOrigin.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#origins(java.util.Collection)
-
routingBoundary
CalculateRouteMatrixRequest.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 CalculateRouteMatrixRequest.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)
-
traffic
CalculateRouteMatrixRequest.Builder traffic(RouteMatrixTrafficOptions traffic)
Traffic related options.
- Parameters:
traffic- Traffic related options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traffic
default CalculateRouteMatrixRequest.Builder traffic(Consumer<RouteMatrixTrafficOptions.Builder> traffic)
Traffic related options.
This is a convenience method that creates an instance of theRouteMatrixTrafficOptions.Builderavoiding the need to create one manually viaRouteMatrixTrafficOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totraffic(RouteMatrixTrafficOptions).- Parameters:
traffic- a consumer that will call methods onRouteMatrixTrafficOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
traffic(RouteMatrixTrafficOptions)
-
travelMode
CalculateRouteMatrixRequest.Builder travelMode(String 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:
RouteMatrixTravelMode,RouteMatrixTravelMode
-
travelMode
CalculateRouteMatrixRequest.Builder travelMode(RouteMatrixTravelMode 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:
RouteMatrixTravelMode,RouteMatrixTravelMode
-
travelModeOptions
CalculateRouteMatrixRequest.Builder travelModeOptions(RouteMatrixTravelModeOptions 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 CalculateRouteMatrixRequest.Builder travelModeOptions(Consumer<RouteMatrixTravelModeOptions.Builder> travelModeOptions)
Travel mode related options for the provided travel mode.
This is a convenience method that creates an instance of theRouteMatrixTravelModeOptions.Builderavoiding the need to create one manually viaRouteMatrixTravelModeOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totravelModeOptions(RouteMatrixTravelModeOptions).- Parameters:
travelModeOptions- a consumer that will call methods onRouteMatrixTravelModeOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
travelModeOptions(RouteMatrixTravelModeOptions)
-
overrideConfiguration
CalculateRouteMatrixRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CalculateRouteMatrixRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-