# OccupantRoles

The occupant roles for which an aggregated safety score is being requested.

## OccupantRoles API

### `all()`

Returns an instance of OccupantRoles that represents all occupant roles.

```java
OccupantRoles all();
```

### `some()`

Returns an instance of OccupantRoles that represents a subset of occupant roles.

```java
OccupantRoles some(OccupantRole... roles);
```

<table><thead><tr><th width="217">Parameters</th><th></th></tr></thead><tbody><tr><td>roles</td><td>The occupant roles for which an aggregated safety score is being requested. See <a href="../../eventtimeline/occupantrole">OccupantRole</a>.</td></tr></tbody></table>
