Package com.slack.api.methods.request.im
Class ImListRequest.ImListRequestBuilder
- java.lang.Object
-
- com.slack.api.methods.request.im.ImListRequest.ImListRequestBuilder
-
- Enclosing class:
- ImListRequest
public static class ImListRequest.ImListRequestBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImListRequest
build()
ImListRequest.ImListRequestBuilder
cursor(String cursor)
Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`.ImListRequest.ImListRequestBuilder
limit(Integer limit)
The maximum number of items to return.ImListRequest.ImListRequestBuilder
token(String token)
Authentication token.String
toString()
-
-
-
Method Detail
-
token
public ImListRequest.ImListRequestBuilder token(String token)
Authentication token. Requires scope: `im:read`- Returns:
this
.
-
cursor
public ImListRequest.ImListRequestBuilder cursor(String cursor)
Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first \"page\" of the collection. See [pagination](/docs/pagination) for more detail.- Returns:
this
.
-
limit
public ImListRequest.ImListRequestBuilder limit(Integer limit)
The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.- Returns:
this
.
-
build
public ImListRequest build()
-
-