@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() |
List<Button> |
getButtons()
List of options to show to the user.
|
String |
getImageUrl()
URL of an image that is displayed to the user.
|
String |
getSubTitle()
Subtitle shown below the title.
|
String |
getTitle()
Title of the option.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttachmentLinkUrl(String attachmentLinkUrl) |
void |
setButtons(Collection<Button> buttons)
List of options to show to the user.
|
void |
setImageUrl(String imageUrl)
URL of an image that is displayed to the user.
|
void |
setSubTitle(String subTitle)
Subtitle shown below the title.
|
void |
setTitle(String title)
Title of the option.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GenericAttachment |
withAttachmentLinkUrl(String attachmentLinkUrl) |
GenericAttachment |
withButtons(Button... buttons)
List of options to show to the user.
|
GenericAttachment |
withButtons(Collection<Button> buttons)
List of options to show to the user.
|
GenericAttachment |
withImageUrl(String imageUrl)
URL of an image that is displayed to the user.
|
GenericAttachment |
withSubTitle(String subTitle)
Subtitle shown below the title.
|
GenericAttachment |
withTitle(String title)
Title of the option.
|
public void setTitle(String title)
Title of the option.
title
- Title of the option.public String getTitle()
Title of the option.
public GenericAttachment withTitle(String title)
Title of the option.
title
- Title of the option.public void setSubTitle(String subTitle)
Subtitle shown below the title.
subTitle
- Subtitle shown below the title.public String getSubTitle()
Subtitle shown below the title.
public GenericAttachment withSubTitle(String subTitle)
Subtitle shown below the title.
subTitle
- Subtitle shown below the title.public void setAttachmentLinkUrl(String attachmentLinkUrl)
attachmentLinkUrl
- public String getAttachmentLinkUrl()
public GenericAttachment withAttachmentLinkUrl(String attachmentLinkUrl)
attachmentLinkUrl
- public void setImageUrl(String imageUrl)
URL of an image that is displayed to the user.
imageUrl
- URL of an image that is displayed to the user.public String getImageUrl()
URL of an image that is displayed to the user.
public GenericAttachment withImageUrl(String imageUrl)
URL of an image that is displayed to the user.
imageUrl
- URL of an image that is displayed to the user.public List<Button> getButtons()
List of options to show to the user.
public void setButtons(Collection<Button> buttons)
List of options to show to the user.
buttons
- List of options to show to the user.public GenericAttachment withButtons(Button... buttons)
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
- List of options to show to the user.public GenericAttachment withButtons(Collection<Button> buttons)
List of options to show to the user.
buttons
- 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.