Package com.dropbox.core.v2.files
Class SearchMatchV2.Builder
java.lang.Object
com.dropbox.core.v2.files.SearchMatchV2.Builder
- Enclosing class:
SearchMatchV2
Builder for
SearchMatchV2.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<HighlightSpan> protected SearchMatchTypeV2protected final MetadataV2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofSearchMatchV2configured with this builder's valueswithHighlightSpans(List<HighlightSpan> highlightSpans) Set value for optional field.withMatchType(SearchMatchTypeV2 matchType) Set value for optional field.
-
Field Details
-
metadata
-
matchType
-
highlightSpans
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withMatchType
Set value for optional field.- Parameters:
matchType- The type of the match.- Returns:
- this builder
-
withHighlightSpans
Set value for optional field.- Parameters:
highlightSpans- The list of HighlightSpan determines which parts of the file title should be highlighted. Must not contain anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofSearchMatchV2configured with this builder's values- Returns:
- new instance of
SearchMatchV2
-