@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetrievalResultContent extends Object implements Serializable, Cloneable, StructuredPojo
Contains the cited text from the data source.
This data type is used in the following API operations:
Retrieve response – in the content field
RetrieveAndGenerate response – in the content field
InvokeAgent response – in the content field
| Constructor and Description |
|---|
RetrievalResultContent() |
| Modifier and Type | Method and Description |
|---|---|
RetrievalResultContent |
clone() |
boolean |
equals(Object obj) |
String |
getText()
The cited text from the data source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setText(String text)
The cited text from the data source.
|
String |
toString()
Returns a string representation of this object.
|
RetrievalResultContent |
withText(String text)
The cited text from the data source.
|
public void setText(String text)
The cited text from the data source.
text - The cited text from the data source.public String getText()
The cited text from the data source.
public RetrievalResultContent withText(String text)
The cited text from the data source.
text - The cited text from the data source.public String toString()
toString in class ObjectObject.toString()public RetrievalResultContent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.