Class LocationResult.Builder

java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
net.ygbstudio.jbrave.core.domain.dto.result.LocationResult.Builder
Enclosing class:
LocationResult

public static final class LocationResult.Builder extends Result.Builder
Builder for LocationResult instances.
  • Constructor Details

    • Builder

      public Builder()
      Creates a new builder with all fields unset.
  • Method Details

    • type

      public LocationResult.Builder type(String type)
      Sets the location type.
      Parameters:
      type - the location type
      Returns:
      this builder
    • id

      Sets the location identifier.
      Parameters:
      id - the location id
      Returns:
      this builder
    • providerUrl

      public LocationResult.Builder providerUrl(String providerUrl)
      Sets the provider URL.
      Parameters:
      providerUrl - the provider URL
      Returns:
      this builder
    • coordinates

      public LocationResult.Builder coordinates(List<Double> coordinates)
      Sets the coordinates.
      Parameters:
      coordinates - the coordinates
      Returns:
      this builder
    • zoomLevel

      public LocationResult.Builder zoomLevel(Integer zoomLevel)
      Sets the zoom level.
      Parameters:
      zoomLevel - the zoom level
      Returns:
      this builder
    • thumbnail

      public LocationResult.Builder thumbnail(Thumbnail thumbnail)
      Sets the thumbnail.
      Parameters:
      thumbnail - the thumbnail
      Returns:
      this builder
    • postalAddress

      public LocationResult.Builder postalAddress(PostalAddress postalAddress)
      Sets the postal address.
      Parameters:
      postalAddress - the postal address
      Returns:
      this builder
    • openingHours

      public LocationResult.Builder openingHours(OpeningHours openingHours)
      Sets the opening hours.
      Parameters:
      openingHours - the opening hours
      Returns:
      this builder
    • contact

      public LocationResult.Builder contact(Contact contact)
      Sets the contact information.
      Parameters:
      contact - the contact
      Returns:
      this builder
    • priceRange

      public LocationResult.Builder priceRange(String priceRange)
      Sets the price range.
      Parameters:
      priceRange - the price range
      Returns:
      this builder
    • rating

      public LocationResult.Builder rating(Rating rating)
      Sets the rating.
      Parameters:
      rating - the rating
      Returns:
      this builder
    • distance

      public LocationResult.Builder distance(Unit distance)
      Sets the distance.
      Parameters:
      distance - the distance
      Returns:
      this builder
    • profiles

      public LocationResult.Builder profiles(List<DataProvider> profiles)
      Sets the profiles.
      Parameters:
      profiles - the profiles
      Returns:
      this builder
    • reviews

      public LocationResult.Builder reviews(Reviews reviews)
      Sets the reviews.
      Parameters:
      reviews - the reviews
      Returns:
      this builder
    • pictures

      public LocationResult.Builder pictures(PictureResults pictures)
      Sets the pictures.
      Parameters:
      pictures - the pictures
      Returns:
      this builder
    • action

      public LocationResult.Builder action(Action action)
      Sets the action.
      Parameters:
      action - the action
      Returns:
      this builder
    • servesCuisine

      public LocationResult.Builder servesCuisine(List<String> servesCuisine)
      Sets the served cuisines.
      Parameters:
      servesCuisine - the served cuisines
      Returns:
      this builder
    • categories

      public LocationResult.Builder categories(List<String> categories)
      Sets the categories.
      Parameters:
      categories - the categories
      Returns:
      this builder
    • iconCategory

      public LocationResult.Builder iconCategory(String iconCategory)
      Sets the icon category.
      Parameters:
      iconCategory - the icon category
      Returns:
      this builder
    • timezone

      public LocationResult.Builder timezone(String timezone)
      Sets the timezone.
      Parameters:
      timezone - the timezone
      Returns:
      this builder
    • timezoneOffset

      public LocationResult.Builder timezoneOffset(String timezoneOffset)
      Sets the timezone offset.
      Parameters:
      timezoneOffset - the timezone offset
      Returns:
      this builder
    • build

      @Contract(" -> new") @NotNull public @NotNull LocationResult build()
      Builds a new LocationResult from the current builder state.
      Overrides:
      build in class Result.Builder
      Returns:
      a new LocationResult instance