Class UsersListRequest
java.lang.Object
com.slack.api.methods.request.users.UsersListRequest
- All Implemented Interfaces:
SlackApiRequest
public class UsersListRequest extends java.lang.Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsersListRequest.UsersListRequestBuilder -
Method Summary
Modifier and Type Method Description static UsersListRequest.UsersListRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetCursor()Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`.java.lang.IntegergetLimit()The maximum number of items to return.java.lang.StringgetTeamId()Required for org-wide apps.java.lang.StringgetToken()Authentication token.inthashCode()booleanisIncludeLocale()Set this to `true` to receive the locale for users.booleanisPresence()Deprecated.voidsetCursor(java.lang.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`.voidsetIncludeLocale(boolean includeLocale)Set this to `true` to receive the locale for users.voidsetLimit(java.lang.Integer limit)The maximum number of items to return.voidsetPresence(boolean presence)Deprecated.voidsetTeamId(java.lang.String teamId)Required for org-wide apps.voidsetToken(java.lang.String token)Authentication token.java.lang.StringtoString()
-
Method Details
-
builder
-
getToken
public java.lang.String getToken()Authentication token. Requires scope: `users:read`- Specified by:
getTokenin interfaceSlackApiRequest
-
getCursor
public java.lang.String getCursor()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. -
getLimit
public java.lang.Integer getLimit()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. -
isIncludeLocale
public boolean isIncludeLocale()Set this to `true` to receive the locale for users. Defaults to `false` -
isPresence
@Deprecated public boolean isPresence()Deprecated.Deprecated. Whether to include presence data in the output. Defaults to `false`. Setting this to `true` reduces performance, especially with large teams. -
getTeamId
public java.lang.String getTeamId()Required for org-wide apps. -
setToken
public void setToken(java.lang.String token)Authentication token. Requires scope: `users:read` -
setCursor
public void setCursor(java.lang.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. -
setLimit
public void setLimit(java.lang.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. -
setIncludeLocale
public void setIncludeLocale(boolean includeLocale)Set this to `true` to receive the locale for users. Defaults to `false` -
setPresence
@Deprecated public void setPresence(boolean presence)Deprecated.Deprecated. Whether to include presence data in the output. Defaults to `false`. Setting this to `true` reduces performance, especially with large teams. -
setTeamId
public void setTeamId(java.lang.String teamId)Required for org-wide apps. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-