@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetrievedReference extends Object implements Serializable, Cloneable, StructuredPojo
Contains metadata about a source cited for the generated response.
This data type is used in the following API operations:
RetrieveAndGenerate response – in the retrievedReferences
field
InvokeAgent response – in the retrievedReferences
field
Constructor and Description |
---|
RetrievedReference() |
Modifier and Type | Method and Description |
---|---|
RetrievedReference |
clone() |
boolean |
equals(Object obj) |
RetrievalResultContent |
getContent()
Contains the cited text from the data source.
|
RetrievalResultLocation |
getLocation()
Contains information about the location of the data source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(RetrievalResultContent content)
Contains the cited text from the data source.
|
void |
setLocation(RetrievalResultLocation location)
Contains information about the location of the data source.
|
String |
toString()
Returns a string representation of this object.
|
RetrievedReference |
withContent(RetrievalResultContent content)
Contains the cited text from the data source.
|
RetrievedReference |
withLocation(RetrievalResultLocation location)
Contains information about the location of the data source.
|
public void setContent(RetrievalResultContent content)
Contains the cited text from the data source.
content
- Contains the cited text from the data source.public RetrievalResultContent getContent()
Contains the cited text from the data source.
public RetrievedReference withContent(RetrievalResultContent content)
Contains the cited text from the data source.
content
- Contains the cited text from the data source.public void setLocation(RetrievalResultLocation location)
Contains information about the location of the data source.
location
- Contains information about the location of the data source.public RetrievalResultLocation getLocation()
Contains information about the location of the data source.
public RetrievedReference withLocation(RetrievalResultLocation location)
Contains information about the location of the data source.
location
- Contains information about the location of the data source.public String toString()
toString
in class Object
Object.toString()
public RetrievedReference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.