Class DefaultQueryParams.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.DefaultQueryParams.Builder
- Enclosing class:
- DefaultQueryParams
public static class DefaultQueryParams.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a DefaultQueryParams.- Returns:
- the new DefaultQueryParams instance
-
addCollectionIds
Adds an collectionIds to collectionIds.- Parameters:
collectionIds
- the new collectionIds- Returns:
- the DefaultQueryParams builder
-
addXReturn
Adds an xReturn to xReturn.- Parameters:
xReturn
- the new xReturn- Returns:
- the DefaultQueryParams builder
-
collectionIds
Set the collectionIds. Existing collectionIds will be replaced.- Parameters:
collectionIds
- the collectionIds- Returns:
- the DefaultQueryParams builder
-
passages
Set the passages.- Parameters:
passages
- the passages- Returns:
- the DefaultQueryParams builder
-
tableResults
Set the tableResults.- Parameters:
tableResults
- the tableResults- Returns:
- the DefaultQueryParams builder
-
aggregation
Set the aggregation.- Parameters:
aggregation
- the aggregation- Returns:
- the DefaultQueryParams builder
-
suggestedRefinements
public DefaultQueryParams.Builder suggestedRefinements(DefaultQueryParamsSuggestedRefinements suggestedRefinements)Set the suggestedRefinements.- Parameters:
suggestedRefinements
- the suggestedRefinements- Returns:
- the DefaultQueryParams builder
-
spellingSuggestions
Set the spellingSuggestions.- Parameters:
spellingSuggestions
- the spellingSuggestions- Returns:
- the DefaultQueryParams builder
-
highlight
Set the highlight.- Parameters:
highlight
- the highlight- Returns:
- the DefaultQueryParams builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the DefaultQueryParams builder
-
sort
Set the sort.- Parameters:
sort
- the sort- Returns:
- the DefaultQueryParams builder
-
xReturn
Set the xReturn. Existing xReturn will be replaced.- Parameters:
xReturn
- the xReturn- Returns:
- the DefaultQueryParams builder
-