Interface RouteTrafficOptions.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteTrafficOptions.Builder,,RouteTrafficOptions> SdkBuilder<RouteTrafficOptions.Builder,,RouteTrafficOptions> SdkPojo
- Enclosing class:
RouteTrafficOptions
-
Method Summary
Modifier and TypeMethodDescriptionflowEventThresholdOverride(Long flowEventThresholdOverride) Duration for which flow traffic is considered valid.Specifies how traffic data should be used when calculating routes.usage(TrafficUsage usage) Specifies how traffic data should be used when calculating routes.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
flowEventThresholdOverride
Duration for which flow traffic is considered valid. For this period, the flow traffic is used over historical traffic data. Flow traffic refers to congestion, which changes very quickly. Duration in seconds for which flow traffic event would be considered valid. While flow traffic event is valid it will be used over the historical traffic data.
- Parameters:
flowEventThresholdOverride- Duration for which flow traffic is considered valid. For this period, the flow traffic is used over historical traffic data. Flow traffic refers to congestion, which changes very quickly. Duration in seconds for which flow traffic event would be considered valid. While flow traffic event is valid it will be used over the historical traffic data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
Specifies how traffic data should be used when calculating routes.
Default Value:
UseTrafficDataTraffic data usage depends on the time parameters in your route request:
-
When
Usageis set toUseTrafficData:-
If
DepartNowis set totrue, or if you specifyDepartureTimeorArrivalTime, then all traffic data is considered (including live traffic and closures). -
If
DepartNow,DepartureTime, andArrivalTimeare all unspecified, then only long-term closures are considered, regardless of this setting.
-
-
When
Usageis set toIgnoreTrafficData, then all traffic data is ignored regardless of the time parameters in your route request.
- Parameters:
usage- Specifies how traffic data should be used when calculating routes.Default Value:
UseTrafficDataTraffic data usage depends on the time parameters in your route request:
-
When
Usageis set toUseTrafficData:-
If
DepartNowis set totrue, or if you specifyDepartureTimeorArrivalTime, then all traffic data is considered (including live traffic and closures). -
If
DepartNow,DepartureTime, andArrivalTimeare all unspecified, then only long-term closures are considered, regardless of this setting.
-
-
When
Usageis set toIgnoreTrafficData, then all traffic data is ignored regardless of the time parameters in your route request.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
usage
Specifies how traffic data should be used when calculating routes.
Default Value:
UseTrafficDataTraffic data usage depends on the time parameters in your route request:
-
When
Usageis set toUseTrafficData:-
If
DepartNowis set totrue, or if you specifyDepartureTimeorArrivalTime, then all traffic data is considered (including live traffic and closures). -
If
DepartNow,DepartureTime, andArrivalTimeare all unspecified, then only long-term closures are considered, regardless of this setting.
-
-
When
Usageis set toIgnoreTrafficData, then all traffic data is ignored regardless of the time parameters in your route request.
- Parameters:
usage- Specifies how traffic data should be used when calculating routes.Default Value:
UseTrafficDataTraffic data usage depends on the time parameters in your route request:
-
When
Usageis set toUseTrafficData:-
If
DepartNowis set totrue, or if you specifyDepartureTimeorArrivalTime, then all traffic data is considered (including live traffic and closures). -
If
DepartNow,DepartureTime, andArrivalTimeare all unspecified, then only long-term closures are considered, regardless of this setting.
-
-
When
Usageis set toIgnoreTrafficData, then all traffic data is ignored regardless of the time parameters in your route request.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-