Class StarsAddRequest

java.lang.Object
com.slack.api.methods.request.stars.StarsAddRequest
All Implemented Interfaces:
SlackApiRequest

public class StarsAddRequest extends Object implements SlackApiRequest
https://docs.slack.dev/reference/methods/stars.add
  • Method Details

    • builder

      public static StarsAddRequest.StarsAddRequestBuilder builder()
    • getToken

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

      public String getFile()
      File to add star to.
    • getFileComment

      public String getFileComment()
      File comment to add star to.
    • getChannel

      public String getChannel()
      Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`).
    • getTimestamp

      public String getTimestamp()
      Timestamp of the message to add star to.
    • setToken

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

      public void setFile(String file)
      File to add star to.
    • setFileComment

      public void setFileComment(String fileComment)
      File comment to add star to.
    • setChannel

      public void setChannel(String channel)
      Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`).
    • setTimestamp

      public void setTimestamp(String timestamp)
      Timestamp of the message to add star to.
    • 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