@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RelevanceFeedback extends Object implements Serializable, Cloneable, StructuredPojo
Provides feedback on how relevant a document is to a search. Your application uses the SubmitFeedback
operation to provide relevance information.
Constructor and Description |
---|
RelevanceFeedback() |
Modifier and Type | Method and Description |
---|---|
RelevanceFeedback |
clone() |
boolean |
equals(Object obj) |
String |
getRelevanceValue()
Whether to document was relevant or not relevant to the search.
|
String |
getResultId()
The unique identifier of the search result that the user provided relevance feedback for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRelevanceValue(String relevanceValue)
Whether to document was relevant or not relevant to the search.
|
void |
setResultId(String resultId)
The unique identifier of the search result that the user provided relevance feedback for.
|
String |
toString()
Returns a string representation of this object.
|
RelevanceFeedback |
withRelevanceValue(RelevanceType relevanceValue)
Whether to document was relevant or not relevant to the search.
|
RelevanceFeedback |
withRelevanceValue(String relevanceValue)
Whether to document was relevant or not relevant to the search.
|
RelevanceFeedback |
withResultId(String resultId)
The unique identifier of the search result that the user provided relevance feedback for.
|
public void setResultId(String resultId)
The unique identifier of the search result that the user provided relevance feedback for.
resultId
- The unique identifier of the search result that the user provided relevance feedback for.public String getResultId()
The unique identifier of the search result that the user provided relevance feedback for.
public RelevanceFeedback withResultId(String resultId)
The unique identifier of the search result that the user provided relevance feedback for.
resultId
- The unique identifier of the search result that the user provided relevance feedback for.public void setRelevanceValue(String relevanceValue)
Whether to document was relevant or not relevant to the search.
relevanceValue
- Whether to document was relevant or not relevant to the search.RelevanceType
public String getRelevanceValue()
Whether to document was relevant or not relevant to the search.
RelevanceType
public RelevanceFeedback withRelevanceValue(String relevanceValue)
Whether to document was relevant or not relevant to the search.
relevanceValue
- Whether to document was relevant or not relevant to the search.RelevanceType
public RelevanceFeedback withRelevanceValue(RelevanceType relevanceValue)
Whether to document was relevant or not relevant to the search.
relevanceValue
- Whether to document was relevant or not relevant to the search.RelevanceType
public String toString()
toString
in class Object
Object.toString()
public RelevanceFeedback clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.