public class GenericAttachment
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.lang.String |
getAttachmentLinkUrl()
The URL of an attachment to the response card.
|
java.util.List<Button> |
getButtons()
The list of options to show to the user.
|
java.lang.String |
getImageUrl()
The URL of an image that is displayed to the user.
|
java.lang.String |
getSubTitle()
The subtitle shown below the title.
|
java.lang.String |
getTitle()
The title of the option.
|
int |
hashCode() |
void |
setAttachmentLinkUrl(java.lang.String attachmentLinkUrl)
The URL of an attachment to the response card.
|
void |
setButtons(java.util.Collection<Button> buttons)
The list of options to show to the user.
|
void |
setImageUrl(java.lang.String imageUrl)
The URL of an image that is displayed to the user.
|
void |
setSubTitle(java.lang.String subTitle)
The subtitle shown below the title.
|
void |
setTitle(java.lang.String title)
The title of the option.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenericAttachment |
withAttachmentLinkUrl(java.lang.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(java.util.Collection<Button> buttons)
The list of options to show to the user.
|
GenericAttachment |
withImageUrl(java.lang.String imageUrl)
The URL of an image that is displayed to the user.
|
GenericAttachment |
withSubTitle(java.lang.String subTitle)
The subtitle shown below the title.
|
GenericAttachment |
withTitle(java.lang.String title)
The title of the option.
|
public java.lang.String getTitle()
The title of the option.
Constraints:
Length: 1 - 80
The title of the option.
public void setTitle(java.lang.String title)
The title of the option.
Constraints:
Length: 1 - 80
title - The title of the option.
public GenericAttachment withTitle(java.lang.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 java.lang.String getSubTitle()
The subtitle shown below the title.
Constraints:
Length: 1 - 80
The subtitle shown below the title.
public void setSubTitle(java.lang.String subTitle)
The subtitle shown below the title.
Constraints:
Length: 1 - 80
subTitle - The subtitle shown below the title.
public GenericAttachment withSubTitle(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.util.List<Button> getButtons()
The list of options to show to the user.
The list of options to show to the user.
public void setButtons(java.util.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(java.util.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.