Class UsergroupsEnableRequest
java.lang.Object
com.slack.api.methods.request.usergroups.UsergroupsEnableRequest
- All Implemented Interfaces:
SlackApiRequest
public class UsergroupsEnableRequest extends java.lang.Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsergroupsEnableRequest.UsergroupsEnableRequestBuilder -
Method Summary
Modifier and Type Method Description static UsergroupsEnableRequest.UsergroupsEnableRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetTeamId()encoded team id where the user group exists, required if org token is usedjava.lang.StringgetToken()Authentication token.java.lang.StringgetUsergroup()The encoded ID of the User Group to enable.inthashCode()booleanisIncludeCount()Include the number of users in the User Group.voidsetIncludeCount(boolean includeCount)Include the number of users in the User Group.voidsetTeamId(java.lang.String teamId)encoded team id where the user group exists, required if org token is usedvoidsetToken(java.lang.String token)Authentication token.voidsetUsergroup(java.lang.String usergroup)The encoded ID of the User Group to enable.java.lang.StringtoString()
-
Method Details
-
builder
-
getToken
public java.lang.String getToken()Authentication token. Requires scope: `usergroups:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
getUsergroup
public java.lang.String getUsergroup()The encoded ID of the User Group to enable. -
isIncludeCount
public boolean isIncludeCount()Include the number of users in the User Group. -
getTeamId
public java.lang.String getTeamId()encoded team id where the user group exists, required if org token is used -
setToken
public void setToken(java.lang.String token)Authentication token. Requires scope: `usergroups:write` -
setUsergroup
public void setUsergroup(java.lang.String usergroup)The encoded ID of the User Group to enable. -
setIncludeCount
public void setIncludeCount(boolean includeCount)Include the number of users in the User Group. -
setTeamId
public void setTeamId(java.lang.String teamId)encoded team id where the user group exists, required if org token is used -
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
-