Class QueryLogOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v1.model.QueryLogOptions.Builder
- Enclosing class:
- QueryLogOptions
public static class QueryLogOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description QueryLogOptions.Builder
addSort(String sort)
Adds an sort to sort.QueryLogOptions
build()
Builds a QueryLogOptions.QueryLogOptions.Builder
count(long count)
Set the count.QueryLogOptions.Builder
filter(String filter)
Set the filter.QueryLogOptions.Builder
offset(long offset)
Set the offset.QueryLogOptions.Builder
query(String query)
Set the query.QueryLogOptions.Builder
sort(List<String> sort)
Set the sort.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a QueryLogOptions.- Returns:
- the new QueryLogOptions instance
-
addSort
Adds an sort to sort.- Parameters:
sort
- the new sort- Returns:
- the QueryLogOptions builder
-
filter
Set the filter.- Parameters:
filter
- the filter- Returns:
- the QueryLogOptions builder
-
query
Set the query.- Parameters:
query
- the query- Returns:
- the QueryLogOptions builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the QueryLogOptions builder
-
offset
Set the offset.- Parameters:
offset
- the offset- Returns:
- the QueryLogOptions builder
-
sort
Set the sort. Existing sort will be replaced.- Parameters:
sort
- the sort- Returns:
- the QueryLogOptions builder
-