Builder

Builder API

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

Builds and returns an instance of SafetyScoreRequestParameters.

Builder build();

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

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