# LodgingEntity.Builder

# LodgingEntity.Builder

*** ** * ** ***

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

<br />

```
class LodgingEntity.Builder
```

<br />

*** ** * ** ***

Builder class for[LodgingEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity).

## Summary

|                                                         ### Public constructors                                                          |
|------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#Builder())`()` |

|                                                            ### Public functions                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addAllDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addAllDisplayTimeWindow(java.util.List<com.google.android.engage.common.datamodel.DisplayTimeWindow>))`(` ` displayTimeWindows: (`[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)`<`[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!>!` `)` Adds display time windows for the lodging entity. |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadge](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addBadge(com.google.android.engage.common.datamodel.Badge))`(badge: `[Badge](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Badge)`!)` Add a badge (image/text) for the lodging entity. e.g. "Breakfast included", "Free cancellation", "Member price", "Open house hours"                                                                                                                                                                                                                         |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addBadges](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addBadges(java.util.List<com.google.android.engage.common.datamodel.Badge>))`(badges: (`[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)`<`[Badge](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Badge)`!>!)` Add badges for the lodging entity.                                                                                                   |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addDisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addDisplayTimeWindow(com.google.android.engage.common.datamodel.DisplayTimeWindow))`(displayTimeWindow: `[DisplayTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/DisplayTimeWindow)`!)` Adds a display time window for the lodging entity.                                                                                                                                                                                                                                  |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(image: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Add a poster image of the entity.                                                                                                                                                                                                                                                                                                               |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addPosterImages(java.util.List<com.google.android.engage.common.datamodel.Image>))`(images: (`[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)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!)` Add poster images of the entity.                                                                                         |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitle](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addSubtitle(java.lang.String))`(subtitle: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Add a subtitle for the lodging entity. e.g. "Private room: Beds: 1 double or 2 twins", "# bds, # Sqft, House for sale"                                                                                                                                                                                                                                                                                     |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addSubtitles](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#addSubtitles(java.util.List<java.lang.String>))`(subtitles: (`[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)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!)` Add subtitles for the lodging entity.                                                                                                                                               |
| [LodgingEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionLinkUri](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setActionLinkUri(android.net.Uri))`(actionLinkUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the action link uri for the lodging entity.                                                                                                                                                                                                                                                                                                                                                          |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAvailabilityTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setAvailabilityTimeWindow(com.google.android.engage.common.datamodel.AvailabilityTimeWindow))`(` ` availabilityTimeWindow: `[AvailabilityTimeWindow](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/AvailabilityTimeWindow)`!` `)` Sets the availability time window for the lodging entity.                                                                                                                                                                                      |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setDescription(java.lang.String))`(description: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the description for the lodging entity.                                                                                                                                                                                                                                                                                                                                                      |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                                                                                                             |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setLocation](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setLocation(com.google.android.engage.common.datamodel.Address))`(location: `[Address](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Address)`!)` Sets the location/address of the lodging entity.                                                                                                                                                                                                                                                                                             |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPrice](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setPrice(com.google.android.engage.common.datamodel.Price))`(price: `[Price](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Price)`!)` Sets the price for the lodging entity;                                                                                                                                                                                                                                                                                                                      |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setPriceCallout](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setPriceCallout(java.lang.String))`(priceCallout: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the price callout for the lodging entity. e.g. "Limited offer"                                                                                                                                                                                                                                                                                                                            |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setRating](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setRating(com.google.android.engage.common.datamodel.Rating))`(rating: `[Rating](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating)`!)` Sets the rating for the lodging entity.                                                                                                                                                                                                                                                                                                               |
| [LodgingEntity.Builder](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder)`!` | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTitle](https://developer.android.com/reference/kotlin/com/google/android/engage/travel/datamodel/LodgingEntity.Builder#setTitle(java.lang.String))`(title: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the title of the lodging entity.                                                                                                                                                                                                                                                                                                                                                                               |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addAllDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addAllDisplayTimeWindow(
    displayTimeWindows: (Mutable)List<DisplayTimeWindow!>!
): LodgingEntity.Builder!
```

Adds display time windows for the lodging entity.

Optional.  

### addBadge

```
@CanIgnoreReturnValue
fun addBadge(badge: Badge!): LodgingEntity.Builder!
```

Add a badge (image/text) for the lodging entity. e.g. "Breakfast included", "Free cancellation", "Member price", "Open house hours"

Optional.  

### addBadges

```
@CanIgnoreReturnValue
fun addBadges(badges: (Mutable)List<Badge!>!): LodgingEntity.Builder!
```

Add badges for the lodging entity.

Optional.  

### addDisplayTimeWindow

```
@CanIgnoreReturnValue
fun addDisplayTimeWindow(displayTimeWindow: DisplayTimeWindow!): LodgingEntity.Builder!
```

Adds a display time window for the lodging entity.

Optional.  

### addPosterImage

```
@CanIgnoreReturnValue
fun addPosterImage(image: Image!): LodgingEntity.Builder!
```

Add a poster image of the entity.

Required.  

### addPosterImages

```
@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): LodgingEntity.Builder!
```

Add poster images of the entity.

Required.  

### addSubtitle

```
@CanIgnoreReturnValue
fun addSubtitle(subtitle: String!): LodgingEntity.Builder!
```

Add a subtitle for the lodging entity. e.g. "Private room: Beds: 1 double or 2 twins", "# bds, # Sqft, House for sale"

Optional.  

### addSubtitles

```
@CanIgnoreReturnValue
fun addSubtitles(subtitles: (Mutable)List<String!>!): LodgingEntity.Builder!
```

Add subtitles for the lodging entity.

Optional.  

### build

```
fun build(): LodgingEntity!
```  

### setActionLinkUri

```
@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): LodgingEntity.Builder!
```

Sets the action link uri for the lodging entity.

Required.  

### setAvailabilityTimeWindow

```
@CanIgnoreReturnValue
fun setAvailabilityTimeWindow(
    availabilityTimeWindow: AvailabilityTimeWindow!
): LodgingEntity.Builder!
```

Sets the availability time window for the lodging entity.

This can refer to time the lodging entity is opened for the day/dates between which the lodging is available.

Optional.  

### setDescription

```
@CanIgnoreReturnValue
fun setDescription(description: String!): LodgingEntity.Builder!
```

Sets the description for the lodging entity.

Optional.  

### setEntityId

```
@CanIgnoreReturnValue
fun setEntityId(entityId: String!): LodgingEntity.Builder!
```

Sets content id of the entity.

Optional.  

### setLocation

```
@CanIgnoreReturnValue
fun setLocation(location: Address!): LodgingEntity.Builder!
```

Sets the location/address of the lodging entity.

Required.  

### setPrice

```
@CanIgnoreReturnValue
fun setPrice(price: Price!): LodgingEntity.Builder!
```

Sets the price for the lodging entity;

Optional.  

### setPriceCallout

```
@CanIgnoreReturnValue
fun setPriceCallout(priceCallout: String!): LodgingEntity.Builder!
```

Sets the price callout for the lodging entity. e.g. "Limited offer"

Optional.  

### setRating

```
@CanIgnoreReturnValue
fun setRating(rating: Rating!): LodgingEntity.Builder!
```

Sets the rating for the lodging entity.

Optional.  

### setTitle

```
@CanIgnoreReturnValue
fun setTitle(title: String!): LodgingEntity.Builder!
```

Sets the title of the lodging entity.

Required.