@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KnowledgeBaseRetrievalResult extends Object implements Serializable, Cloneable, StructuredPojo
Details about a result from querying the knowledge base.
This data type is used in the following API operations:
Retrieve response – in the retrievalResults
field
Constructor and Description |
---|
KnowledgeBaseRetrievalResult() |
Modifier and Type | Method and Description |
---|---|
KnowledgeBaseRetrievalResult |
clone() |
boolean |
equals(Object obj) |
RetrievalResultContent |
getContent()
Contains a chunk of text from a data source in the knowledge base.
|
RetrievalResultLocation |
getLocation()
Contains information about the location of the data source.
|
Double |
getScore()
The level of relevance of the result to the query.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(RetrievalResultContent content)
Contains a chunk of text from a data source in the knowledge base.
|
void |
setLocation(RetrievalResultLocation location)
Contains information about the location of the data source.
|
void |
setScore(Double score)
The level of relevance of the result to the query.
|
String |
toString()
Returns a string representation of this object.
|
KnowledgeBaseRetrievalResult |
withContent(RetrievalResultContent content)
Contains a chunk of text from a data source in the knowledge base.
|
KnowledgeBaseRetrievalResult |
withLocation(RetrievalResultLocation location)
Contains information about the location of the data source.
|
KnowledgeBaseRetrievalResult |
withScore(Double score)
The level of relevance of the result to the query.
|
public void setContent(RetrievalResultContent content)
Contains a chunk of text from a data source in the knowledge base.
content
- Contains a chunk of text from a data source in the knowledge base.public RetrievalResultContent getContent()
Contains a chunk of text from a data source in the knowledge base.
public KnowledgeBaseRetrievalResult withContent(RetrievalResultContent content)
Contains a chunk of text from a data source in the knowledge base.
content
- Contains a chunk of text from a data source in the knowledge base.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 KnowledgeBaseRetrievalResult withLocation(RetrievalResultLocation location)
Contains information about the location of the data source.
location
- Contains information about the location of the data source.public void setScore(Double score)
The level of relevance of the result to the query.
score
- The level of relevance of the result to the query.public Double getScore()
The level of relevance of the result to the query.
public KnowledgeBaseRetrievalResult withScore(Double score)
The level of relevance of the result to the query.
score
- The level of relevance of the result to the query.public String toString()
toString
in class Object
Object.toString()
public KnowledgeBaseRetrievalResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.