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 QueryCollectionNoticesOptionsbuild()Builds a QueryCollectionNoticesOptions.QueryCollectionNoticesOptions.BuildercollectionId(String collectionId)Set the collectionId.QueryCollectionNoticesOptions.Buildercount(long count)Set the count.QueryCollectionNoticesOptions.Builderfilter(String filter)Set the filter.QueryCollectionNoticesOptions.BuildernaturalLanguageQuery(String naturalLanguageQuery)Set the naturalLanguageQuery.QueryCollectionNoticesOptions.Builderoffset(long offset)Set the offset.QueryCollectionNoticesOptions.BuilderprojectId(String projectId)Set the projectId.QueryCollectionNoticesOptions.Builderquery(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
-