Class SearchMatchV2.Builder

java.lang.Object
com.dropbox.core.v2.files.SearchMatchV2.Builder
Enclosing class:
SearchMatchV2

public static class SearchMatchV2.Builder extends Object
Builder for SearchMatchV2.
  • Field Details

  • Constructor Details

    • Builder

      protected Builder(MetadataV2 metadata)
  • Method Details

    • withMatchType

      public SearchMatchV2.Builder withMatchType(SearchMatchTypeV2 matchType)
      Set value for optional field.
      Parameters:
      matchType - The type of the match.
      Returns:
      this builder
    • withHighlightSpans

      public SearchMatchV2.Builder withHighlightSpans(List<HighlightSpan> highlightSpans)
      Set value for optional field.
      Parameters:
      highlightSpans - The list of HighlightSpan determines which parts of the file title should be highlighted. Must not contain a null item.
      Returns:
      this builder
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • build

      public SearchMatchV2 build()
      Builds an instance of SearchMatchV2 configured with this builder's values
      Returns:
      new instance of SearchMatchV2