Package com.dropbox.core.v2.files
Class SearchMatchV2.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.files.SearchMatchV2.Builder
 
- 
- Enclosing class:
- SearchMatchV2
 
 public static class SearchMatchV2.Builder extends java.lang.ObjectBuilder forSearchMatchV2.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.List<HighlightSpan>highlightSpansprotected SearchMatchTypeV2matchTypeprotected MetadataV2metadata
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(MetadataV2 metadata)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchMatchV2build()Builds an instance ofSearchMatchV2configured with this builder's valuesSearchMatchV2.BuilderwithHighlightSpans(java.util.List<HighlightSpan> highlightSpans)Set value for optional field.SearchMatchV2.BuilderwithMatchType(SearchMatchTypeV2 matchType)Set value for optional field.
 
- 
- 
- 
Field Detail- 
metadataprotected final MetadataV2 metadata 
 - 
matchTypeprotected SearchMatchTypeV2 matchType 
 - 
highlightSpansprotected java.util.List<HighlightSpan> highlightSpans 
 
- 
 - 
Constructor Detail- 
Builderprotected Builder(MetadataV2 metadata) 
 
- 
 - 
Method Detail- 
withMatchTypepublic SearchMatchV2.Builder withMatchType(SearchMatchTypeV2 matchType) Set value for optional field.- Parameters:
- matchType- The type of the match.
- Returns:
- this builder
 
 - 
withHighlightSpanspublic SearchMatchV2.Builder withHighlightSpans(java.util.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- nullitem.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
buildpublic SearchMatchV2 build() Builds an instance ofSearchMatchV2configured with this builder's values- Returns:
- new instance of SearchMatchV2
 
 
- 
 
-