@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RescoreResultItem extends Object implements Serializable, Cloneable, StructuredPojo
A result item for a document with a new relevancy score.
Constructor and Description |
---|
RescoreResultItem() |
Modifier and Type | Method and Description |
---|---|
RescoreResultItem |
clone() |
boolean |
equals(Object obj) |
String |
getDocumentId()
The identifier of the document from the search service.
|
Float |
getScore()
The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocumentId(String documentId)
The identifier of the document from the search service.
|
void |
setScore(Float score)
The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.
|
String |
toString()
Returns a string representation of this object.
|
RescoreResultItem |
withDocumentId(String documentId)
The identifier of the document from the search service.
|
RescoreResultItem |
withScore(Float score)
The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.
|
public void setDocumentId(String documentId)
The identifier of the document from the search service.
documentId
- The identifier of the document from the search service.public String getDocumentId()
The identifier of the document from the search service.
public RescoreResultItem withDocumentId(String documentId)
The identifier of the document from the search service.
documentId
- The identifier of the document from the search service.public void setScore(Float score)
The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.
score
- The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.public Float getScore()
The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.
public RescoreResultItem withScore(Float score)
The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.
score
- The relevancy score or rank that Amazon Kendra Intelligent Ranking gives to the result.public String toString()
toString
in class Object
Object.toString()
public RescoreResultItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.