LodgingEntity.Builder


class LodgingEntity.Builder


Builder class for LodgingEntity.

Summary

Public constructors

Public functions

LodgingEntity.Builder!

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

LodgingEntity.Builder!

Add badges for the lodging entity.

LodgingEntity.Builder!

Add a poster image of the entity.

LodgingEntity.Builder!

Add poster images of the entity.

LodgingEntity.Builder!

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

LodgingEntity.Builder!

Add subtitles for the lodging entity.

LodgingEntity!
LodgingEntity.Builder!

Sets the action link uri for the lodging entity.

LodgingEntity.Builder!

Sets the availability time window for the lodging entity.

LodgingEntity.Builder!

Sets the description for the lodging entity.

LodgingEntity.Builder!

Sets content id of the entity.

LodgingEntity.Builder!

Sets the location/address of the lodging entity.

LodgingEntity.Builder!

Sets the price for the lodging entity;

LodgingEntity.Builder!

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

LodgingEntity.Builder!

Sets the rating for the lodging entity.

LodgingEntity.Builder!

Sets the title of the lodging entity.

Public constructors

Builder

Builder()

Public functions

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.

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.