Class UsergroupsUpdateRequest

java.lang.Object
com.slack.api.methods.request.usergroups.UsergroupsUpdateRequest
All Implemented Interfaces:
SlackApiRequest

public class UsergroupsUpdateRequest
extends java.lang.Object
implements SlackApiRequest
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  UsergroupsUpdateRequest.UsergroupsUpdateRequestBuilder  
  • Method Summary

    Modifier and Type Method Description
    static UsergroupsUpdateRequest.UsergroupsUpdateRequestBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.util.List<java.lang.String> getChannels()
    A comma separated string of encoded channel IDs for which the User Group uses as a default.
    java.lang.String getDescription()
    A short description of the User Group.
    java.lang.String getHandle()
    A mention handle.
    java.lang.String getName()
    A name for the User Group.
    java.lang.String getTeamId()
    encoded team id where the user group exists, required if org token is used
    java.lang.String getToken()
    Authentication token.
    java.lang.String getUsergroup()
    The encoded ID of the User Group to update.
    int hashCode()  
    boolean isIncludeCount()
    Include the number of users in the User Group.
    void setChannels​(java.util.List<java.lang.String> channels)
    A comma separated string of encoded channel IDs for which the User Group uses as a default.
    void setDescription​(java.lang.String description)
    A short description of the User Group.
    void setHandle​(java.lang.String handle)
    A mention handle.
    void setIncludeCount​(boolean includeCount)
    Include the number of users in the User Group.
    void setName​(java.lang.String name)
    A name for the User Group.
    void setTeamId​(java.lang.String teamId)
    encoded team id where the user group exists, required if org token is used
    void setToken​(java.lang.String token)
    Authentication token.
    void setUsergroup​(java.lang.String usergroup)
    The encoded ID of the User Group to update.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • builder

    • getToken

      public java.lang.String getToken()
      Authentication token. Requires scope: `usergroups:write`
      Specified by:
      getToken in interface SlackApiRequest
    • getUsergroup

      public java.lang.String getUsergroup()
      The encoded ID of the User Group to update.
    • getName

      public java.lang.String getName()
      A name for the User Group. Must be unique among User Groups.
    • getHandle

      public java.lang.String getHandle()
      A mention handle. Must be unique among channels, users and User Groups.
    • getDescription

      public java.lang.String getDescription()
      A short description of the User Group.
    • getChannels

      public java.util.List<java.lang.String> 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 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 update.
    • setName

      public void setName​(java.lang.String name)
      A name for the User Group. Must be unique among User Groups.
    • setHandle

      public void setHandle​(java.lang.String handle)
      A mention handle. Must be unique among channels, users and User Groups.
    • setDescription

      public void setDescription​(java.lang.String description)
      A short description of the User Group.
    • setChannels

      public void setChannels​(java.util.List<java.lang.String> channels)
      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 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:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object