LodgingEntity.Builder


public final class LodgingEntity.Builder


Builder class for LodgingEntity.

Summary

Public constructors

Public methods

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

public Builder()

Public methods

addBadge

@CanIgnoreReturnValue
public LodgingEntity.Builder addBadge(Badge badge)

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

Optional.

addBadges

@CanIgnoreReturnValue
public LodgingEntity.Builder addBadges(List<Badge> badges)

Add badges for the lodging entity.

Optional.

addPosterImage

@CanIgnoreReturnValue
public LodgingEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
public LodgingEntity.Builder addPosterImages(List<Image> images)

Add poster images of the entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public LodgingEntity.Builder addSubtitle(String subtitle)

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
public LodgingEntity.Builder addSubtitles(List<String> subtitles)

Add subtitles for the lodging entity.

Optional.

build

public LodgingEntity build()

setActionLinkUri

@CanIgnoreReturnValue
public LodgingEntity.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the lodging entity.

Required.

setAvailabilityTimeWindow

@CanIgnoreReturnValue
public LodgingEntity.Builder setAvailabilityTimeWindow(
    AvailabilityTimeWindow availabilityTimeWindow
)

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
public LodgingEntity.Builder setDescription(String description)

Sets the description for the lodging entity.

Optional.

setEntityId

@CanIgnoreReturnValue
public LodgingEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setLocation

@CanIgnoreReturnValue
public LodgingEntity.Builder setLocation(Address location)

Sets the location/address of the lodging entity.

Required.

setPrice

@CanIgnoreReturnValue
public LodgingEntity.Builder setPrice(Price price)

Sets the price for the lodging entity;

Optional.

setPriceCallout

@CanIgnoreReturnValue
public LodgingEntity.Builder setPriceCallout(String priceCallout)

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

Optional.

setRating

@CanIgnoreReturnValue
public LodgingEntity.Builder setRating(Rating rating)

Sets the rating for the lodging entity.

Optional.

setTitle

@CanIgnoreReturnValue
public LodgingEntity.Builder setTitle(String title)

Sets the title of the lodging entity.

Required.