Builder
Builder API
Builder
Builder
Creates a builder object that is used for creating a SafetyScoreRequestParameter instance.
Builder(Period period)
Parameters
period
The period for which the aggregated safety score is being requested. See Period.
build
build
Builds and returns an instance of SafetyScoreRequestParameters.
Builder build();
setOccupantRoles
setOccupantRoles
Sets the occupant roles for which the safety score is being requested for.
Returns an instance of the Builder.
Builder setOccupantRoles(OccupantRoles occupantRoles);
Parameters
occupantRoles
The occupant roles for which the aggregated safety score is being requested. See OccupantRoles.
setTransportModes
setTransportModes
Sets the transport modes for which the safety score is being requested for.
Returns an instance of the Builder.
Builder setTransportModes(TransportModes transportModes);
Parameters
transportModes
The transport modes for which the aggregated safety score is being requested. See TransportModes.
Last updated