Builder
Builder API
Builder
BuilderCreates 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
buildBuilds and returns an instance of SafetyScoreRequestParameters.
Builder build();setOccupantRoles
setOccupantRolesSets 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
setTransportModesSets 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