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 classUsergroupsCreateRequest.UsergroupsCreateRequestBuilder -
Method Summary
Modifier and Type Method Description static UsergroupsCreateRequest.UsergroupsCreateRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)List<String>getChannels()A comma separated string of encoded channel IDs for which the User Group uses as a default.StringgetDescription()A short description of the User Group.StringgetHandle()A mention handle.StringgetName()A name for the User Group.StringgetToken()Authentication token.inthashCode()booleanisIncludeCount()Include the number of users in each User Group.voidsetChannels(List<String> channels)A comma separated string of encoded channel IDs for which the User Group uses as a default.voidsetDescription(String description)A short description of the User Group.voidsetHandle(String handle)A mention handle.voidsetIncludeCount(boolean includeCount)Include the number of users in each User Group.voidsetName(String name)A name for the User Group.voidsetToken(String token)Authentication token.StringtoString()
-
Method Details
-
builder
-
getToken
Authentication token. Requires scope: `usergroups:write`- Specified by:
getTokenin 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. -
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. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-