LodgingReservationEntity.Builder


public final class LodgingReservationEntity.Builder


Builder class for LodgingReservationEntity.

Summary

Public constructors

Public methods

LodgingReservationEntity.Builder

Add a poster image of the lodging reservation entity.

LodgingReservationEntity.Builder

Add poster images of the lodging reservation entity.

LodgingReservationEntity.Builder

Add a subtitle of the lodging reservation entity.

LodgingReservationEntity.Builder

Add subtitles of the lodging reservation entity.

LodgingReservationEntity
LodgingReservationEntity.Builder

Sets the action uri of the lodging reservation entity.

LodgingReservationEntity.Builder

Sets the address of the lodging reservation entity.

LodgingReservationEntity.Builder

This method is deprecated.

Use setLocalizedCheckInTime instead.

LodgingReservationEntity.Builder

This method is deprecated.

Use setLocalizedCheckOutTime instead.

LodgingReservationEntity.Builder

Sets the description (typically a single paragraph of text) of the lodging reservation entity.

LodgingReservationEntity.Builder

Sets reservation id of the lodging reservation entity.

LodgingReservationEntity.Builder

Sets the localized timestamp for the reservation check in time for the lodging reservation entity.

LodgingReservationEntity.Builder

Sets the localized timestamp for the reservation check out time for the lodging reservation entity.

LodgingReservationEntity.Builder

Sets the price for the lodging reservation entity;

LodgingReservationEntity.Builder

Sets the price callout text for the lodging reservation entity. e.g. “Limited deal"

LodgingReservationEntity.Builder

Sets the rating for the lodging reservation entity.

LodgingReservationEntity.Builder

Sets the reservation ID for the lodging reservation entity.

LodgingReservationEntity.Builder

Sets the name/title of the lodging reservation entity.

Public constructors

Builder

public Builder()

Public methods

addPosterImage

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder addPosterImage(Image image)

Add a poster image of the lodging reservation entity.

Required.

addPosterImages

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

Add poster images of the lodging reservation entity.

Required.

addSubtitle

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder addSubtitle(String subtitle)

Add a subtitle of the lodging reservation entity.

This field can include subtitles like "Buffet", "Fine dining", etc. .

Optional.

addSubtitles

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder addSubtitles(List<String> subtitles)

Add subtitles of the lodging reservation entity.

Optional.

build

public LodgingReservationEntity build()

setActionUri

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setActionUri(Uri actionUri)

Sets the action uri of the lodging reservation entity.

Required.

setAddress

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setAddress(Address address)

Sets the address of the lodging reservation entity.

Required.

setCheckInTime

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setCheckInTime(long checkInTime)

Sets the epoch timestamp (in milliseconds) for the reservation check in time for the lodging reservation entity.

Required.

setCheckOutTime

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setCheckOutTime(long checkOutTime)

Sets the epoch timestamp (in milliseconds) for the reservation check out time for the lodging reservation entity.

Required.

setDescription

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setDescription(String description)

Sets the description (typically a single paragraph of text) of the lodging reservation entity.

Optional.

setEntityId

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setEntityId(String entityId)

Sets reservation id of the lodging reservation entity.

Optional.

setLocalizedCheckInTime

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setLocalizedCheckInTime(LocalizedTimestamp localizedCheckInTime)

Sets the localized timestamp for the reservation check in time for the lodging reservation entity.

Required.

setLocalizedCheckOutTime

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setLocalizedCheckOutTime(LocalizedTimestamp localizedCheckOutTime)

Sets the localized timestamp for the reservation check out time for the lodging reservation entity.

Required.

setPrice

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setPrice(Price price)

Sets the price for the lodging reservation entity;

Optional.

setPriceCallout

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setPriceCallout(String priceCallout)

Sets the price callout text for the lodging reservation entity. e.g. “Limited deal"

Optional.

setRating

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setRating(Rating rating)

Sets the rating for the lodging reservation entity.

Optional.

setReservationId

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setReservationId(String reservationId)

Sets the reservation ID for the lodging reservation entity.

Optional.

setTitle

@CanIgnoreReturnValue
public LodgingReservationEntity.Builder setTitle(String title)

Sets the name/title of the lodging reservation entity.

Required.