public abstract static class Groups.QueryRequest extends Object
query()
.Groups.query()
Constructor and Description |
---|
QueryRequest() |
Modifier and Type | Method and Description |
---|---|
abstract List<GroupInfo> |
get()
Execute query and returns the matched groups as list.
|
int |
getLimit() |
EnumSet<ListGroupsOption> |
getOptions() |
String |
getQuery() |
int |
getStart() |
Groups.QueryRequest |
withLimit(int limit)
Set limit for returned list of groups.
|
Groups.QueryRequest |
withOption(ListGroupsOption options) |
Groups.QueryRequest |
withOptions(EnumSet<ListGroupsOption> options) |
Groups.QueryRequest |
withOptions(ListGroupsOption... options) |
Groups.QueryRequest |
withQuery(String query)
Set query.
|
Groups.QueryRequest |
withStart(int start)
Set number of groups to skip.
|
public abstract List<GroupInfo> get() throws RestApiException
RestApiException
public Groups.QueryRequest withQuery(String query)
query
- needs to be in human-readable form.public Groups.QueryRequest withLimit(int limit)
public Groups.QueryRequest withStart(int start)
public Groups.QueryRequest withOption(ListGroupsOption options)
public Groups.QueryRequest withOptions(ListGroupsOption... options)
public Groups.QueryRequest withOptions(EnumSet<ListGroupsOption> options)
public String getQuery()
public int getLimit()
public int getStart()
public EnumSet<ListGroupsOption> getOptions()