Interface CrossReference.Builder

  • Method Details

    • source

      The name of the third-party data supplier (for example, Yelp or TripAdvisor).

      Parameters:
      source - The name of the third-party data supplier (for example, Yelp or TripAdvisor ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePlaceId

      CrossReference.Builder sourcePlaceId(String sourcePlaceId)

      The place identifier assigned by the third-party supplier.

      Parameters:
      sourcePlaceId - The place identifier assigned by the third-party supplier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCategories

      CrossReference.Builder sourceCategories(Collection<Category> sourceCategories)

      The list of place category identifiers this supplier reference relates to.

      Parameters:
      sourceCategories - The list of place category identifiers this supplier reference relates to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCategories

      CrossReference.Builder sourceCategories(Category... sourceCategories)

      The list of place category identifiers this supplier reference relates to.

      Parameters:
      sourceCategories - The list of place category identifiers this supplier reference relates to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCategories

      CrossReference.Builder sourceCategories(Consumer<Category.Builder>... sourceCategories)

      The list of place category identifiers this supplier reference relates to.

      This is a convenience method that creates an instance of the Category.Builder avoiding the need to create one manually via Category.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourceCategories(List<Category>).

      Parameters:
      sourceCategories - a consumer that will call methods on Category.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: