Class QueryNoticesOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.QueryNoticesOptions.Builder
- Enclosing class:
- QueryNoticesOptions
public static class QueryNoticesOptions.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description QueryNoticesOptions
build()
Builds a QueryNoticesOptions.QueryNoticesOptions.Builder
count(long count)
Set the count.QueryNoticesOptions.Builder
filter(String filter)
Set the filter.QueryNoticesOptions.Builder
naturalLanguageQuery(String naturalLanguageQuery)
Set the naturalLanguageQuery.QueryNoticesOptions.Builder
offset(long offset)
Set the offset.QueryNoticesOptions.Builder
projectId(String projectId)
Set the projectId.QueryNoticesOptions.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 projectId
-
-
Method Details
-
build
Builds a QueryNoticesOptions.- Returns:
- the new QueryNoticesOptions instance
-
projectId
Set the projectId.- Parameters:
projectId
- the projectId- Returns:
- the QueryNoticesOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the QueryNoticesOptions builder
-
query
Set the query.- Parameters:
query
- the query- Returns:
- the QueryNoticesOptions builder
-
naturalLanguageQuery
Set the naturalLanguageQuery.- Parameters:
naturalLanguageQuery
- the naturalLanguageQuery- Returns:
- the QueryNoticesOptions builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the QueryNoticesOptions builder
-
offset
Set the offset.- Parameters:
offset
- the offset- Returns:
- the QueryNoticesOptions builder
-