Class QueryCollectionNoticesOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.QueryCollectionNoticesOptions.Builder
- Enclosing class:
- QueryCollectionNoticesOptions
public static class QueryCollectionNoticesOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description QueryCollectionNoticesOptions
build()
Builds a QueryCollectionNoticesOptions.QueryCollectionNoticesOptions.Builder
collectionId(String collectionId)
Set the collectionId.QueryCollectionNoticesOptions.Builder
count(long count)
Set the count.QueryCollectionNoticesOptions.Builder
filter(String filter)
Set the filter.QueryCollectionNoticesOptions.Builder
naturalLanguageQuery(String naturalLanguageQuery)
Set the naturalLanguageQuery.QueryCollectionNoticesOptions.Builder
offset(long offset)
Set the offset.QueryCollectionNoticesOptions.Builder
projectId(String projectId)
Set the projectId.QueryCollectionNoticesOptions.Builder
query(String query)
Set the query.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId
- the projectIdcollectionId
- the collectionId
-
-
Method Details
-
build
Builds a QueryCollectionNoticesOptions.- Returns:
- the new QueryCollectionNoticesOptions instance
-
projectId
Set the projectId.- Parameters:
projectId
- the projectId- Returns:
- the QueryCollectionNoticesOptions builder
-
collectionId
Set the collectionId.- Parameters:
collectionId
- the collectionId- Returns:
- the QueryCollectionNoticesOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the QueryCollectionNoticesOptions builder
-
query
Set the query.- Parameters:
query
- the query- Returns:
- the QueryCollectionNoticesOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery
- the naturalLanguageQuery- Returns:
- the QueryCollectionNoticesOptions builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the QueryCollectionNoticesOptions builder
-
offset
Set the offset.- Parameters:
offset
- the offset- Returns:
- the QueryCollectionNoticesOptions builder
-