Class ConversationsRenameRequest
- java.lang.Object
-
- com.slack.api.methods.request.conversations.ConversationsRenameRequest
-
- All Implemented Interfaces:
SlackApiRequest
public class ConversationsRenameRequest extends Object implements SlackApiRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConversationsRenameRequest.ConversationsRenameRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConversationsRenameRequest.ConversationsRenameRequestBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getChannel()
ID of conversation to renameString
getName()
New name for conversation.String
getToken()
Authentication token.int
hashCode()
void
setChannel(String channel)
ID of conversation to renamevoid
setName(String name)
New name for conversation.void
setToken(String token)
Authentication token.String
toString()
-
-
-
Method Detail
-
builder
public static ConversationsRenameRequest.ConversationsRenameRequestBuilder builder()
-
getToken
public String getToken()
Authentication token. Requires scope: `conversations:write`- Specified by:
getToken
in interfaceSlackApiRequest
-
getChannel
public String getChannel()
ID of conversation to rename
-
getName
public String getName()
New name for conversation.Conversation names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 21 characters or less. We will validate the submitted channel name and modify it to meet the above criteria. When calling this method, we recommend storing the channel's name value that is returned in the response.
-
setToken
public void setToken(String token)
Authentication token. Requires scope: `conversations:write`
-
setChannel
public void setChannel(String channel)
ID of conversation to rename
-
setName
public void setName(String name)
New name for conversation.Conversation names can only contain lowercase letters, numbers, hyphens, and underscores, and must be 21 characters or less. We will validate the submitted channel name and modify it to meet the above criteria. When calling this method, we recommend storing the channel's name value that is returned in the response.
-
canEqual
protected boolean canEqual(Object other)
-
-