# ReservationCluster

# ReservationCluster

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/com/google/android/engage/travel/datamodel/ReservationCluster "View this page in Java")  


```
class ReservationCluster
```

<br />

*** ** * ** ***

A cluster representing a group of reservation entities. This class encapsulates a list of entities that are relevant to reservations, such as lodging, vehicle rentals, transportation, events, and restaurants. It provides a structured way to manage and represent these entities, and it can be converted into a [Bundle](https://developer.android.com/reference/android/os/Bundle.html) for data transfer.

## Summary

|                                                                                                                                                 ### Nested types                                                                                                                                                 |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[ReservationCluster.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/ReservationCluster.Builder) Builder class for [ReservationCluster](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/ReservationCluster). |

|                                                                                                                                                ### Public functions                                                                                                                                                 |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                                          | [getClusterType](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/ReservationCluster#getClusterType())`()`                                                    |
| `(`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Entity](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Entity)`!>!` | [getEntities](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/ReservationCluster#getEntities())`()` Returns the list of reservation entities in the Cluster. |

## Public functions

### getClusterType

```
fun getClusterType(): Int
```  

### getEntities

```
fun getEntities(): (Mutable)List<Entity!>!
```

Returns the list of reservation entities in the Cluster.