> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/driving-insights/safetyscorerequestparameters/builder.md).

# 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="/pages/SfPCDDAY5NzTW8I9mthI">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="/pages/4RnmliW5sANju3ezgEvn">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="/pages/j9a4L8q7bhzEIcGWmhac">TransportModes</a>.</td></tr></tbody></table>
