Class StarsAddRequest
java.lang.Object
com.slack.api.methods.request.stars.StarsAddRequest
- All Implemented Interfaces:
SlackApiRequest
public class StarsAddRequest extends java.lang.Object implements SlackApiRequest
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStarsAddRequest.StarsAddRequestBuilder -
Method Summary
Modifier and Type Method Description static StarsAddRequest.StarsAddRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetChannel()Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`).java.lang.StringgetFile()File to add star to.java.lang.StringgetFileComment()File comment to add star to.java.lang.StringgetTimestamp()Timestamp of the message to add star to.java.lang.StringgetToken()Authentication token.inthashCode()voidsetChannel(java.lang.String channel)Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`).voidsetFile(java.lang.String file)File to add star to.voidsetFileComment(java.lang.String fileComment)File comment to add star to.voidsetTimestamp(java.lang.String timestamp)Timestamp of the message to add star to.voidsetToken(java.lang.String token)Authentication token.java.lang.StringtoString()
-
Method Details
-
builder
-
getToken
public java.lang.String getToken()Authentication token. Requires scope: `stars:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
getFile
public java.lang.String getFile()File to add star to. -
getFileComment
public java.lang.String getFileComment()File comment to add star to. -
getChannel
public java.lang.String getChannel()Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`). -
getTimestamp
public java.lang.String getTimestamp()Timestamp of the message to add star to. -
setToken
public void setToken(java.lang.String token)Authentication token. Requires scope: `stars:write` -
setFile
public void setFile(java.lang.String file)File to add star to. -
setFileComment
public void setFileComment(java.lang.String fileComment)File comment to add star to. -
setChannel
public void setChannel(java.lang.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(java.lang.String timestamp)Timestamp of the message to add star to. -
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
-