Class UsersProfileSetRequest

java.lang.Object
com.slack.api.methods.request.users.profile.UsersProfileSetRequest
All Implemented Interfaces:
SlackApiRequest

public class UsersProfileSetRequest extends Object implements SlackApiRequest
https://docs.slack.dev/reference/methods/users.profile.set
  • Method Details

    • builder

    • getToken

      public String getToken()
      Authentication token. Requires scope: `users.profile:write`
      Specified by:
      getToken in interface SlackApiRequest
      Returns:
      token string value or null
    • getUser

      public String getUser()
      ID of user to change. This argument may only be specified by team admins on paid teams.
    • getProfile

      public User.Profile getProfile()
      Collection of key:value pairs presented as a URL-encoded JSON hash.
    • getName

      public String getName()
      Name of a single key to set. Usable only if profile is not passed.
    • getValue

      public String getValue()
      Value to set a single key to. Usable only if profile is not passed.
    • setToken

      public void setToken(String token)
      Authentication token. Requires scope: `users.profile:write`
      Specified by:
      setToken in interface SlackApiRequest
    • setUser

      public void setUser(String user)
      ID of user to change. This argument may only be specified by team admins on paid teams.
    • setProfile

      public void setProfile(User.Profile profile)
      Collection of key:value pairs presented as a URL-encoded JSON hash.
    • setName

      public void setName(String name)
      Name of a single key to set. Usable only if profile is not passed.
    • setValue

      public void setValue(String value)
      Value to set a single key to. Usable only if profile is not passed.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object