# Builder

## Builder API

### `Builder`

Creates a builder object that is used for creating a SafetyScoreRequestParameter instance.

```java
Builder(Period period)
```

<table><thead><tr><th width="249">Parameters</th><th></th></tr></thead><tbody><tr><td>period</td><td>The period for which the aggregated safety score is being requested. See <a href="period">Period</a>.</td></tr></tbody></table>

### `build`

Builds and returns an instance of SafetyScoreRequestParameters.

```java
Builder build();
```

### `setOccupantRoles`

Sets the occupant roles for which the safety score is being requested for.

Returns an instance of the Builder.

```java
Builder setOccupantRoles(OccupantRoles occupantRoles);
```

<table><thead><tr><th width="249">Parameters</th><th></th></tr></thead><tbody><tr><td>occupantRoles</td><td>The occupant roles for which the aggregated safety score is being requested. See <a href="occupantroles">OccupantRoles</a>.</td></tr></tbody></table>

### `setTransportModes`

Sets the transport modes for which the safety score is being requested for.

Returns an instance of the Builder.

```java
Builder setTransportModes(TransportModes transportModes);
```

<table><thead><tr><th width="249">Parameters</th><th></th></tr></thead><tbody><tr><td>transportModes</td><td>The transport modes for which the aggregated safety score is being requested. See <a href="transportmodes">TransportModes</a>.</td></tr></tbody></table>
