Class UsersProfileSetRequest
java.lang.Object
com.slack.api.methods.request.users.profile.UsersProfileSetRequest
- All Implemented Interfaces:
SlackApiRequest
public class UsersProfileSetRequest extends java.lang.Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsersProfileSetRequest.UsersProfileSetRequestBuilder -
Method Summary
Modifier and Type Method Description static UsersProfileSetRequest.UsersProfileSetRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetName()Name of a single key to set.User.ProfilegetProfile()Collection of key:value pairs presented as a URL-encoded JSON hash.java.lang.StringgetToken()Authentication token.java.lang.StringgetUser()ID of user to change.java.lang.StringgetValue()Value to set a single key to.inthashCode()voidsetName(java.lang.String name)Name of a single key to set.voidsetProfile(User.Profile profile)Collection of key:value pairs presented as a URL-encoded JSON hash.voidsetToken(java.lang.String token)Authentication token.voidsetUser(java.lang.String user)ID of user to change.voidsetValue(java.lang.String value)Value to set a single key to.java.lang.StringtoString()
-
Method Details
-
builder
-
getToken
public java.lang.String getToken()Authentication token. Requires scope: `users.profile:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
getUser
public java.lang.String getUser()ID of user to change. This argument may only be specified by team admins on paid teams. -
getProfile
Collection of key:value pairs presented as a URL-encoded JSON hash. -
getName
public java.lang.String getName()Name of a single key to set. Usable only if profile is not passed. -
getValue
public java.lang.String getValue()Value to set a single key to. Usable only if profile is not passed. -
setToken
public void setToken(java.lang.String token)Authentication token. Requires scope: `users.profile:write` -
setUser
public void setUser(java.lang.String user)ID of user to change. This argument may only be specified by team admins on paid teams. -
setProfile
Collection of key:value pairs presented as a URL-encoded JSON hash. -
setName
public void setName(java.lang.String name)Name of a single key to set. Usable only if profile is not passed. -
setValue
public void setValue(java.lang.String value)Value to set a single key to. Usable only if profile is not passed. -
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
-