Class FederatedQueryOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.FederatedQueryOptions.Builder
- Enclosing class:
- FederatedQueryOptions
public static class FederatedQueryOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
environmentId
- the environmentIdcollectionIds
- the collectionIds
-
-
Method Details
-
build
Builds a FederatedQueryOptions.- Returns:
- the new FederatedQueryOptions instance
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the FederatedQueryOptions builder
-
collectionIds
Set the collectionIds.- Parameters:
collectionIds
- the collectionIds- Returns:
- the FederatedQueryOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the FederatedQueryOptions builder
-
query
Set the query.- Parameters:
query
- the query- Returns:
- the FederatedQueryOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery
- the naturalLanguageQuery- Returns:
- the FederatedQueryOptions builder
-
passages
Set the passages.- Parameters:
passages
- the passages- Returns:
- the FederatedQueryOptions builder
-
aggregation
Set the aggregation.- Parameters:
aggregation
- the aggregation- Returns:
- the FederatedQueryOptions builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the FederatedQueryOptions builder
-
xReturn
Set the xReturn.- Parameters:
xReturn
- the xReturn- Returns:
- the FederatedQueryOptions builder
-
offset
Set the offset.- Parameters:
offset
- the offset- Returns:
- the FederatedQueryOptions builder
-
sort
Set the sort.- Parameters:
sort
- the sort- Returns:
- the FederatedQueryOptions builder
-
highlight
Set the highlight.- Parameters:
highlight
- the highlight- Returns:
- the FederatedQueryOptions builder
-
passagesFields
Set the passagesFields.- Parameters:
passagesFields
- the passagesFields- Returns:
- the FederatedQueryOptions builder
-
passagesCount
Set the passagesCount.- Parameters:
passagesCount
- the passagesCount- Returns:
- the FederatedQueryOptions builder
-
passagesCharacters
Set the passagesCharacters.- Parameters:
passagesCharacters
- the passagesCharacters- Returns:
- the FederatedQueryOptions builder
-
deduplicate
Set the deduplicate.- Parameters:
deduplicate
- the deduplicate- Returns:
- the FederatedQueryOptions builder
-
deduplicateField
Set the deduplicateField.- Parameters:
deduplicateField
- the deduplicateField- Returns:
- the FederatedQueryOptions builder
-
similar
Set the similar.- Parameters:
similar
- the similar- Returns:
- the FederatedQueryOptions builder
-
similarDocumentIds
Set the similarDocumentIds.- Parameters:
similarDocumentIds
- the similarDocumentIds- Returns:
- the FederatedQueryOptions builder
-
similarFields
Set the similarFields.- Parameters:
similarFields
- the similarFields- Returns:
- the FederatedQueryOptions builder
-
bias
Set the bias.- Parameters:
bias
- the bias- Returns:
- the FederatedQueryOptions builder
-
xWatsonLoggingOptOut
Set the xWatsonLoggingOptOut.- Parameters:
xWatsonLoggingOptOut
- the xWatsonLoggingOptOut- Returns:
- the FederatedQueryOptions builder
-