PointOfInterestEntity.Builder


class PointOfInterestEntity.Builder


Builder class for PointOfInterestEntity.

Summary

Public constructors

Public functions

PointOfInterestEntity.Builder!

Add a badge (image/text) for the point of interest entity. e.g. “7 wonder of the world”, “Best trail 2024”

PointOfInterestEntity.Builder!

Add badges for the point of interest entity.

PointOfInterestEntity.Builder!

Add eligible content categories for the point of interest entity.

PointOfInterestEntity.Builder!

Add eligible content category for the point of interest entity.

PointOfInterestEntity.Builder!

Add a poster image of the entity.

PointOfInterestEntity.Builder!

Add poster images of the entity.

PointOfInterestEntity.Builder!

Add a subtitle for the point of interest entity. e.g. "Trail length", "Elev.

PointOfInterestEntity.Builder!

Add subtitles for the point of interest entity.

PointOfInterestEntity!
PointOfInterestEntity.Builder!

Sets the action link uri for the point of interest entity.

PointOfInterestEntity.Builder!

Sets the availability time window for the point of interest entity.

PointOfInterestEntity.Builder!

Sets the description for the point of interest entity.

PointOfInterestEntity.Builder!

Sets content id of the entity.

PointOfInterestEntity.Builder!

Sets the last engagement time for the point of interest entity.

PointOfInterestEntity.Builder!

Sets the location/address of the point of interest entity.

PointOfInterestEntity.Builder!

Sets the price for the point of interest entity;

PointOfInterestEntity.Builder!

Sets the price callout for the point of interest entity. e.g. “Limited offer"

PointOfInterestEntity.Builder!

Sets the rating for the point of interest entity.

PointOfInterestEntity.Builder!

Sets the title of the point of interest entity.

Public constructors

Builder

Builder()

Public functions

addBadge

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

Add a badge (image/text) for the point of interest entity. e.g. “7 wonder of the world”, “Best trail 2024”

Optional.

addBadges

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

Add badges for the point of interest entity.

Optional.

addContentCategories

@CanIgnoreReturnValue
fun addContentCategories(contentCategories: (Mutable)List<Int!>!): PointOfInterestEntity.Builder!

Add eligible content categories for the point of interest entity.

Optional.

addContentCategory

@CanIgnoreReturnValue
fun addContentCategory(
    @PointOfInterestEntity.EligibleContentCategory contentCategory: Int
): PointOfInterestEntity.Builder!

Add eligible content category for the point of interest entity.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

addSubtitle

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

Add a subtitle for the point of interest entity. e.g. "Trail length", "Elev. Gain", "Duration", "Difficulty level", “Day trips”, “Safari”, etc.

Optional.

addSubtitles

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

Add subtitles for the point of interest entity.

Optional.

build

fun build(): PointOfInterestEntity!

setActionLinkUri

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

Sets the action link uri for the point of interest entity.

Required.

setAvailabilityTimeWindow

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

Sets the availability time window for the point of interest entity.

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

Optional.

setDescription

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

Sets the description for the point of interest entity.

Optional.

setEntityId

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

Sets content id of the entity.

Optional.

setLastEngagementTime

@CanIgnoreReturnValue
fun setLastEngagementTime(lastEngagementTime: Instant!): PointOfInterestEntity.Builder!

Sets the last engagement time for the point of interest entity.

Optional.

setLocation

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

Sets the location/address of the point of interest entity.

Required.

setPrice

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

Sets the price for the point of interest entity;

Optional.

setPriceCallout

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

Sets the price callout for the point of interest entity. e.g. “Limited offer"

Optional.

setRating

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

Sets the rating for the point of interest entity.

Optional.

setTitle

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

Sets the title of the point of interest entity.

Required.