Class ChatUpdateRequest

java.lang.Object
com.slack.api.methods.request.chat.ChatUpdateRequest
All Implemented Interfaces:
SlackApiRequest

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

    Nested Classes 
    Modifier and Type Class Description
    static class  ChatUpdateRequest.ChatUpdateRequestBuilder  
  • Method Summary

    Modifier and Type Method Description
    static ChatUpdateRequest.ChatUpdateRequestBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.util.List<Attachment> getAttachments()
    A JSON-based array of structured attachments, presented as a URL-encoded string.
    java.lang.String getAttachmentsAsString()
    A JSON-based array of structured attachments, presented as a URL-encoded string.
    java.util.List<LayoutBlock> getBlocks()
    A JSON-based array of structured blocks, presented as a URL-encoded string.
    java.lang.String getBlocksAsString()
    A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
    java.lang.String getChannel()
    Channel, private group, or IM channel to send message to.
    java.lang.String getParse()
    Change how messages are treated.
    java.lang.String getText()
    Text of the message to send.
    java.lang.String getToken()
    Authentication token.
    java.lang.String getTs()
    Timestamp of the message to be updated.
    java.lang.String getUser()
    `id` of the user who will receive the ephemeral message.
    int hashCode()  
    java.lang.Boolean isAsUser()  
    boolean isLinkNames()
    Find and link channel names and usernames.
    void setAsUser​(java.lang.Boolean asUser)  
    void setAttachments​(java.util.List<Attachment> attachments)
    A JSON-based array of structured attachments, presented as a URL-encoded string.
    void setAttachmentsAsString​(java.lang.String attachmentsAsString)
    A JSON-based array of structured attachments, presented as a URL-encoded string.
    void setBlocks​(java.util.List<LayoutBlock> blocks)
    A JSON-based array of structured blocks, presented as a URL-encoded string.
    void setBlocksAsString​(java.lang.String blocksAsString)
    A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
    void setChannel​(java.lang.String channel)
    Channel, private group, or IM channel to send message to.
    void setLinkNames​(boolean linkNames)
    Find and link channel names and usernames.
    void setParse​(java.lang.String parse)
    Change how messages are treated.
    void setText​(java.lang.String text)
    Text of the message to send.
    void setToken​(java.lang.String token)
    Authentication token.
    void setTs​(java.lang.String ts)
    Timestamp of the message to be updated.
    void setUser​(java.lang.String user)
    `id` of the user who will receive the ephemeral message.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • isAsUser

      public java.lang.Boolean isAsUser()
    • setAsUser

      public void setAsUser​(java.lang.Boolean asUser)
    • builder

    • getToken

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

      public java.lang.String getChannel()
      Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
    • getTs

      public java.lang.String getTs()
      Timestamp of the message to be updated.
    • getText

      public java.lang.String getText()
      Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead.
    • getUser

      public java.lang.String getUser()
      `id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument.
    • getBlocks

      public java.util.List<LayoutBlock> getBlocks()
      A JSON-based array of structured blocks, presented as a URL-encoded string.
    • getBlocksAsString

      public java.lang.String getBlocksAsString()
      A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
    • getAttachments

      public java.util.List<Attachment> getAttachments()
      A JSON-based array of structured attachments, presented as a URL-encoded string.
    • getAttachmentsAsString

      public java.lang.String getAttachmentsAsString()
      A JSON-based array of structured attachments, presented as a URL-encoded string.
    • isLinkNames

      public boolean isLinkNames()
      Find and link channel names and usernames.
    • getParse

      public java.lang.String getParse()
      Change how messages are treated. Defaults to `none`. See [below](#formatting).
    • setToken

      public void setToken​(java.lang.String token)
      Authentication token. Requires scope: `chat:write`
    • setChannel

      public void setChannel​(java.lang.String channel)
      Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
    • setTs

      public void setTs​(java.lang.String ts)
      Timestamp of the message to be updated.
    • setText

      public void setText​(java.lang.String text)
      Text of the message to send. See below for an explanation of [formatting](#formatting). This field is usually required, unless you're providing only `attachments` instead.
    • setUser

      public void setUser​(java.lang.String user)
      `id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument.
    • setBlocks

      public void setBlocks​(java.util.List<LayoutBlock> blocks)
      A JSON-based array of structured blocks, presented as a URL-encoded string.
    • setBlocksAsString

      public void setBlocksAsString​(java.lang.String blocksAsString)
      A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
    • setAttachments

      public void setAttachments​(java.util.List<Attachment> attachments)
      A JSON-based array of structured attachments, presented as a URL-encoded string.
    • setAttachmentsAsString

      public void setAttachmentsAsString​(java.lang.String attachmentsAsString)
      A JSON-based array of structured attachments, presented as a URL-encoded string.
    • setLinkNames

      public void setLinkNames​(boolean linkNames)
      Find and link channel names and usernames.
    • setParse

      public void setParse​(java.lang.String parse)
      Change how messages are treated. Defaults to `none`. See [below](#formatting).
    • 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