Class ConversationsRenameRequest

java.lang.Object
com.slack.api.methods.request.conversations.ConversationsRenameRequest
All Implemented Interfaces:
SlackApiRequest

public class ConversationsRenameRequest
extends java.lang.Object
implements SlackApiRequest
  • Method Details

    • builder

    • getToken

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

      public java.lang.String getChannel()
      ID of conversation to rename
    • getName

      public java.lang.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​(java.lang.String token)
      Authentication token. Requires scope: `conversations:write`
    • setChannel

      public void setChannel​(java.lang.String channel)
      ID of conversation to rename
    • setName

      public void setName​(java.lang.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.

    • 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