@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseCard extends Object implements Serializable, Cloneable, StructuredPojo
If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot
values that are available, and then returns it. The response card can also come from a Lambda function (
dialogCodeHook and fulfillmentActivity on an intent).
| Constructor and Description |
|---|
ResponseCard() |
| Modifier and Type | Method and Description |
|---|---|
ResponseCard |
clone() |
boolean |
equals(Object obj) |
String |
getContentType()
The content type of the response.
|
List<GenericAttachment> |
getGenericAttachments()
An array of attachment objects representing options.
|
String |
getVersion()
The version of the response card format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setContentType(ContentType contentType)
The content type of the response.
|
void |
setContentType(String contentType)
The content type of the response.
|
void |
setGenericAttachments(Collection<GenericAttachment> genericAttachments)
An array of attachment objects representing options.
|
void |
setVersion(String version)
The version of the response card format.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ResponseCard |
withContentType(ContentType contentType)
The content type of the response.
|
ResponseCard |
withContentType(String contentType)
The content type of the response.
|
ResponseCard |
withGenericAttachments(Collection<GenericAttachment> genericAttachments)
An array of attachment objects representing options.
|
ResponseCard |
withGenericAttachments(GenericAttachment... genericAttachments)
An array of attachment objects representing options.
|
ResponseCard |
withVersion(String version)
The version of the response card format.
|
public void setVersion(String version)
The version of the response card format.
version - The version of the response card format.public String getVersion()
The version of the response card format.
public ResponseCard withVersion(String version)
The version of the response card format.
version - The version of the response card format.public void setContentType(String contentType)
The content type of the response.
contentType - The content type of the response.ContentTypepublic String getContentType()
The content type of the response.
ContentTypepublic ResponseCard withContentType(String contentType)
The content type of the response.
contentType - The content type of the response.ContentTypepublic void setContentType(ContentType contentType)
The content type of the response.
contentType - The content type of the response.ContentTypepublic ResponseCard withContentType(ContentType contentType)
The content type of the response.
contentType - The content type of the response.ContentTypepublic List<GenericAttachment> getGenericAttachments()
An array of attachment objects representing options.
public void setGenericAttachments(Collection<GenericAttachment> genericAttachments)
An array of attachment objects representing options.
genericAttachments - An array of attachment objects representing options.public ResponseCard withGenericAttachments(GenericAttachment... genericAttachments)
An array of attachment objects representing options.
NOTE: This method appends the values to the existing list (if any). Use
setGenericAttachments(java.util.Collection) or withGenericAttachments(java.util.Collection) if
you want to override the existing values.
genericAttachments - An array of attachment objects representing options.public ResponseCard withGenericAttachments(Collection<GenericAttachment> genericAttachments)
An array of attachment objects representing options.
genericAttachments - An array of attachment objects representing options.public String toString()
toString in class ObjectObject.toString()public ResponseCard clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.