@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KnowledgeBaseRetrievalResult extends Object implements Serializable, Cloneable, StructuredPojo
Result item returned from a knowledge base retrieval.
Constructor and Description |
---|
KnowledgeBaseRetrievalResult() |
Modifier and Type | Method and Description |
---|---|
KnowledgeBaseRetrievalResult |
clone() |
boolean |
equals(Object obj) |
RetrievalResultContent |
getContent() |
RetrievalResultLocation |
getLocation() |
Double |
getScore()
The relevance score of a result.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(RetrievalResultContent content) |
void |
setLocation(RetrievalResultLocation location) |
void |
setScore(Double score)
The relevance score of a result.
|
String |
toString()
Returns a string representation of this object.
|
KnowledgeBaseRetrievalResult |
withContent(RetrievalResultContent content) |
KnowledgeBaseRetrievalResult |
withLocation(RetrievalResultLocation location) |
KnowledgeBaseRetrievalResult |
withScore(Double score)
The relevance score of a result.
|
public void setContent(RetrievalResultContent content)
content
- public RetrievalResultContent getContent()
public KnowledgeBaseRetrievalResult withContent(RetrievalResultContent content)
content
- public void setLocation(RetrievalResultLocation location)
location
- public RetrievalResultLocation getLocation()
public KnowledgeBaseRetrievalResult withLocation(RetrievalResultLocation location)
location
- public void setScore(Double score)
The relevance score of a result.
score
- The relevance score of a result.public Double getScore()
The relevance score of a result.
public KnowledgeBaseRetrievalResult withScore(Double score)
The relevance score of a result.
score
- The relevance score of a result.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.