@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GenericAttachment extends Object implements Serializable, Cloneable, StructuredPojo
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 |
---|---|
GenericAttachment |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 void setTitle(String title)
The title of the option.
title
- The title of the option.public String getTitle()
The title of the option.
public GenericAttachment withTitle(String title)
The title of the option.
title
- The title of the option.public void setSubTitle(String subTitle)
The subtitle shown below the title.
subTitle
- The subtitle shown below the title.public String getSubTitle()
The subtitle shown below the title.
public GenericAttachment withSubTitle(String subTitle)
The subtitle shown below the title.
subTitle
- The subtitle shown below the title.public void setAttachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
attachmentLinkUrl
- The URL of an attachment to the response card.public String getAttachmentLinkUrl()
The URL of an attachment to the response card.
public GenericAttachment withAttachmentLinkUrl(String attachmentLinkUrl)
The URL of an attachment to the response card.
attachmentLinkUrl
- The URL of an attachment to the response card.public void setImageUrl(String imageUrl)
The URL of an image that is displayed to the user.
imageUrl
- The URL of an image that is displayed to the user.public String getImageUrl()
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.
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.
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.
NOTE: This method appends the values to the existing list (if any). Use
setButtons(java.util.Collection)
or withButtons(java.util.Collection)
if you want to override
the existing values.
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.
buttons
- The list of options to show to the user.public String toString()
toString
in class Object
Object.toString()
public GenericAttachment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.