Class FederatedQueryNoticesOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.FederatedQueryNoticesOptions.Builder
- Enclosing class:
- FederatedQueryNoticesOptions
public static class FederatedQueryNoticesOptions.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 FederatedQueryNoticesOptions.- Returns:
- the new FederatedQueryNoticesOptions instance
-
addCollectionIds
Adds an collectionIds to collectionIds.- Parameters:
collectionIds
- the new collectionIds- Returns:
- the FederatedQueryNoticesOptions builder
-
addReturnField
Adds an returnField to xReturn.- Parameters:
returnField
- the new returnField- Returns:
- the FederatedQueryNoticesOptions builder
-
addSort
Adds an sort to sort.- Parameters:
sort
- the new sort- Returns:
- the FederatedQueryNoticesOptions builder
-
addSimilarDocumentIds
Adds an similarDocumentIds to similarDocumentIds.- Parameters:
similarDocumentIds
- the new similarDocumentIds- Returns:
- the FederatedQueryNoticesOptions builder
-
addSimilarFields
Adds an similarFields to similarFields.- Parameters:
similarFields
- the new similarFields- Returns:
- the FederatedQueryNoticesOptions builder
-
environmentId
Set the environmentId.- Parameters:
environmentId
- the environmentId- Returns:
- the FederatedQueryNoticesOptions builder
-
collectionIds
Set the collectionIds. Existing collectionIds will be replaced.- Parameters:
collectionIds
- the collectionIds- Returns:
- the FederatedQueryNoticesOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the FederatedQueryNoticesOptions builder
-
query
Set the query.- Parameters:
query
- the query- Returns:
- the FederatedQueryNoticesOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery
- the naturalLanguageQuery- Returns:
- the FederatedQueryNoticesOptions builder
-
aggregation
Set the aggregation.- Parameters:
aggregation
- the aggregation- Returns:
- the FederatedQueryNoticesOptions builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the FederatedQueryNoticesOptions builder
-
xReturn
Set the xReturn. Existing xReturn will be replaced.- Parameters:
xReturn
- the xReturn- Returns:
- the FederatedQueryNoticesOptions builder
-
offset
Set the offset.- Parameters:
offset
- the offset- Returns:
- the FederatedQueryNoticesOptions builder
-
sort
Set the sort. Existing sort will be replaced.- Parameters:
sort
- the sort- Returns:
- the FederatedQueryNoticesOptions builder
-
highlight
Set the highlight.- Parameters:
highlight
- the highlight- Returns:
- the FederatedQueryNoticesOptions builder
-
deduplicateField
Set the deduplicateField.- Parameters:
deduplicateField
- the deduplicateField- Returns:
- the FederatedQueryNoticesOptions builder
-
similar
Set the similar.- Parameters:
similar
- the similar- Returns:
- the FederatedQueryNoticesOptions builder
-
similarDocumentIds
Set the similarDocumentIds. Existing similarDocumentIds will be replaced.- Parameters:
similarDocumentIds
- the similarDocumentIds- Returns:
- the FederatedQueryNoticesOptions builder
-
similarFields
Set the similarFields. Existing similarFields will be replaced.- Parameters:
similarFields
- the similarFields- Returns:
- the FederatedQueryNoticesOptions builder
-