Class BookmarksAddRequest
- java.lang.Object
-
- com.slack.api.methods.request.bookmarks.BookmarksAddRequest
-
- All Implemented Interfaces:
SlackApiRequest
public class BookmarksAddRequest extends Object implements SlackApiRequest
https://api.slack.com/methods/bookmarks.add
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBookmarksAddRequest.BookmarksAddRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BookmarksAddRequest.BookmarksAddRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetChannelId()Channel to add bookmark in.StringgetEmoji()Emoji tag to apply to the link.StringgetEntityId()ID of the entity being bookmarked.StringgetLink()Link to bookmark.StringgetParentId()Id of this bookmark's parentStringgetTitle()Title for the bookmark.StringgetToken()Authentication token.StringgetType()Type of the bookmark i.e.inthashCode()voidsetChannelId(String channelId)Channel to add bookmark in.voidsetEmoji(String emoji)Emoji tag to apply to the link.voidsetEntityId(String entityId)ID of the entity being bookmarked.voidsetLink(String link)Link to bookmark.voidsetParentId(String parentId)Id of this bookmark's parentvoidsetTitle(String title)Title for the bookmark.voidsetToken(String token)Authentication token.voidsetType(String type)Type of the bookmark i.e.StringtoString()
-
-
-
Method Detail
-
builder
public static BookmarksAddRequest.BookmarksAddRequestBuilder builder()
-
getToken
public String getToken()
Authentication token. Requires scope: `bookmarks:write`- Specified by:
getTokenin interfaceSlackApiRequest- Returns:
- token string value or null
-
getChannelId
public String getChannelId()
Channel to add bookmark in.
-
getTitle
public String getTitle()
Title for the bookmark.
-
getType
public String getType()
Type of the bookmark i.e. link.
-
getEmoji
public String getEmoji()
Emoji tag to apply to the link.
-
getEntityId
public String getEntityId()
ID of the entity being bookmarked. Only applies to message and file types.
-
getLink
public String getLink()
Link to bookmark.
-
getParentId
public String getParentId()
Id of this bookmark's parent
-
setToken
public void setToken(String token)
Authentication token. Requires scope: `bookmarks:write`- Specified by:
setTokenin interfaceSlackApiRequest
-
setChannelId
public void setChannelId(String channelId)
Channel to add bookmark in.
-
setTitle
public void setTitle(String title)
Title for the bookmark.
-
setType
public void setType(String type)
Type of the bookmark i.e. link.
-
setEmoji
public void setEmoji(String emoji)
Emoji tag to apply to the link.
-
setEntityId
public void setEntityId(String entityId)
ID of the entity being bookmarked. Only applies to message and file types.
-
setLink
public void setLink(String link)
Link to bookmark.
-
setParentId
public void setParentId(String parentId)
Id of this bookmark's parent
-
canEqual
protected boolean canEqual(Object other)
-
-