Class ChatUnfurlRequest
java.lang.Object
com.slack.api.methods.request.chat.ChatUnfurlRequest
- All Implemented Interfaces:
SlackApiRequest
public class ChatUnfurlRequest extends java.lang.Object implements SlackApiRequest
Provide custom unfurl behavior for user-posted URLs
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChatUnfurlRequest.ChatUnfurlRequestBuilderstatic classChatUnfurlRequest.UnfurlDetail -
Method Summary
Modifier and Type Method Description static ChatUnfurlRequest.ChatUnfurlRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetChannel()Channel ID of the messagejava.lang.StringgetRawUnfurls()URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.java.lang.StringgetSource()java.lang.StringgetToken()Authentication token.java.lang.StringgetTs()Timestamp of the message to add unfurl behavior to.java.lang.StringgetUnfurlId()java.util.Map<java.lang.String,ChatUnfurlRequest.UnfurlDetail>getUnfurls()java.util.List<LayoutBlock>getUserAuthBlocks()Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorjava.lang.StringgetUserAuthMessage()Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorjava.lang.StringgetUserAuthUrl()Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.inthashCode()booleanisUserAuthRequired()Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainvoidsetChannel(java.lang.String channel)Channel ID of the messagevoidsetRawUnfurls(java.lang.String rawUnfurls)URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments.voidsetSource(java.lang.String source)voidsetToken(java.lang.String token)Authentication token.voidsetTs(java.lang.String ts)Timestamp of the message to add unfurl behavior to.voidsetUnfurlId(java.lang.String unfurlId)voidsetUnfurls(java.util.Map<java.lang.String,ChatUnfurlRequest.UnfurlDetail> unfurls)voidsetUserAuthBlocks(java.util.List<LayoutBlock> userAuthBlocks)Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorvoidsetUserAuthMessage(java.lang.String userAuthMessage)Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behaviorvoidsetUserAuthRequired(boolean userAuthRequired)Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domainvoidsetUserAuthUrl(java.lang.String userAuthUrl)Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling.java.lang.StringtoString()
-
Method Details
-
builder
-
getToken
public java.lang.String getToken()Authentication token. Requires scope: `links:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
getUserAuthMessage
public java.lang.String getUserAuthMessage()Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
getUserAuthBlocks
Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
isUserAuthRequired
public boolean isUserAuthRequired()Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domain -
getRawUnfurls
public java.lang.String getRawUnfurls()URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments. -
getUnfurls
-
getTs
public java.lang.String getTs()Timestamp of the message to add unfurl behavior to. -
getUserAuthUrl
public java.lang.String getUserAuthUrl()Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded. -
getChannel
public java.lang.String getChannel()Channel ID of the message -
getUnfurlId
public java.lang.String getUnfurlId() -
getSource
public java.lang.String getSource() -
setToken
public void setToken(java.lang.String token)Authentication token. Requires scope: `links:write` -
setUserAuthMessage
public void setUserAuthMessage(java.lang.String userAuthMessage)Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
setUserAuthBlocks
Provide an array of blocks to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior -
setUserAuthRequired
public void setUserAuthRequired(boolean userAuthRequired)Set to `true` or `1` to indicate the user must install your Slack app to trigger unfurls for this domain -
setRawUnfurls
public void setRawUnfurls(java.lang.String rawUnfurls)URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl message attachments. -
setUnfurls
-
setTs
public void setTs(java.lang.String ts)Timestamp of the message to add unfurl behavior to. -
setUserAuthUrl
public void setUserAuthUrl(java.lang.String userAuthUrl)Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded. -
setChannel
public void setChannel(java.lang.String channel)Channel ID of the message -
setUnfurlId
public void setUnfurlId(java.lang.String unfurlId) -
setSource
public void setSource(java.lang.String source) -
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
-