public class GenericAttachment extends Object implements Serializable
Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.
| Constructor and Description |
|---|
GenericAttachment() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAttachmentLinkUrl()
The URL of an attachment to the response card.
|
List<Button> |
getButtons()
The list of options to show to the user.
|
String |
getImageUrl()
The URL of an image that is displayed to the user.
|
String |
getSubTitle()
The subtitle shown below the title.
|
String |
getTitle()
The title of the option.
|
int |
hashCode() |
void |
setAttachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
|
void |
setButtons(Collection<Button> buttons)
The list of options to show to the user.
|
void |
setImageUrl(String imageUrl)
The URL of an image that is displayed to the user.
|
void |
setSubTitle(String subTitle)
The subtitle shown below the title.
|
void |
setTitle(String title)
The title of the option.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenericAttachment |
withAttachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
|
GenericAttachment |
withButtons(Button... buttons)
The list of options to show to the user.
|
GenericAttachment |
withButtons(Collection<Button> buttons)
The list of options to show to the user.
|
GenericAttachment |
withImageUrl(String imageUrl)
The URL of an image that is displayed to the user.
|
GenericAttachment |
withSubTitle(String subTitle)
The subtitle shown below the title.
|
GenericAttachment |
withTitle(String title)
The title of the option.
|
public String getTitle()
The title of the option.
Constraints:
Length: 1 - 80
The title of the option.
public void setTitle(String title)
The title of the option.
Constraints:
Length: 1 - 80
title - The title of the option.
public GenericAttachment withTitle(String title)
The title of the option.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 80
title - The title of the option.
public String getSubTitle()
The subtitle shown below the title.
Constraints:
Length: 1 - 80
The subtitle shown below the title.
public void setSubTitle(String subTitle)
The subtitle shown below the title.
Constraints:
Length: 1 - 80
subTitle - The subtitle shown below the title.
public GenericAttachment withSubTitle(String subTitle)
The subtitle shown below the title.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 80
subTitle - The subtitle shown below the title.
public String getAttachmentLinkUrl()
The URL of an attachment to the response card.
Constraints:
Length: 1 - 2048
The URL of an attachment to the response card.
public void setAttachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
Constraints:
Length: 1 - 2048
attachmentLinkUrl - The URL of an attachment to the response card.
public GenericAttachment withAttachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
attachmentLinkUrl - The URL of an attachment to the response card.
public String getImageUrl()
The URL of an image that is displayed to the user.
Constraints:
Length: 1 - 2048
The URL of an image that is displayed to the user.
public void setImageUrl(String imageUrl)
The URL of an image that is displayed to the user.
Constraints:
Length: 1 - 2048
imageUrl - The URL of an image that is displayed to the user.
public GenericAttachment withImageUrl(String imageUrl)
The URL of an image that is displayed to the user.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
imageUrl - The URL of an image that is displayed to the user.
public List<Button> getButtons()
The list of options to show to the user.
The list of options to show to the user.
public void setButtons(Collection<Button> buttons)
The list of options to show to the user.
buttons - The list of options to show to the user.
public GenericAttachment withButtons(Button... buttons)
The list of options to show to the user.
Returns a reference to this object so that method calls can be chained together.
buttons - The list of options to show to the user.
public GenericAttachment withButtons(Collection<Button> buttons)
The list of options to show to the user.
Returns a reference to this object so that method calls can be chained together.
buttons - The list of options to show to the user.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.