Class UsergroupsCreateRequest
java.lang.Object
com.slack.api.methods.request.usergroups.UsergroupsCreateRequest
- All Implemented Interfaces:
SlackApiRequest
public class UsergroupsCreateRequest extends Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsergroupsCreateRequest.UsergroupsCreateRequestBuilder
-
Method Summary
Modifier and Type Method Description static UsergroupsCreateRequest.UsergroupsCreateRequestBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<String>
getChannels()
A comma separated string of encoded channel IDs for which the User Group uses as a default.String
getDescription()
A short description of the User Group.String
getHandle()
A mention handle.String
getName()
A name for the User Group.String
getTeamId()
encoded team id where the user group exists, required if org token is usedString
getToken()
Authentication token.int
hashCode()
boolean
isIncludeCount()
Include the number of users in each User Group.void
setChannels(List<String> channels)
A comma separated string of encoded channel IDs for which the User Group uses as a default.void
setDescription(String description)
A short description of the User Group.void
setHandle(String handle)
A mention handle.void
setIncludeCount(boolean includeCount)
Include the number of users in each User Group.void
setName(String name)
A name for the User Group.void
setTeamId(String teamId)
encoded team id where the user group exists, required if org token is usedvoid
setToken(String token)
Authentication token.String
toString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `usergroups:write`- Specified by:
getToken
in interfaceSlackApiRequest
-
getName
A name for the User Group. Must be unique among User Groups. -
getHandle
A mention handle. Must be unique among channels, users and User Groups. -
getDescription
A short description of the User Group. -
getChannels
A comma separated string of encoded channel IDs for which the User Group uses as a default. -
isIncludeCount
public boolean isIncludeCount()Include the number of users in each User Group. -
getTeamId
encoded team id where the user group exists, required if org token is used -
setToken
Authentication token. Requires scope: `usergroups:write` -
setName
A name for the User Group. Must be unique among User Groups. -
setHandle
A mention handle. Must be unique among channels, users and User Groups. -
setDescription
A short description of the User Group. -
setChannels
A comma separated string of encoded channel IDs for which the User Group uses as a default. -
setIncludeCount
public void setIncludeCount(boolean includeCount)Include the number of users in each User Group. -
setTeamId
encoded team id where the user group exists, required if org token is used -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-