@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResultData extends Object implements Serializable, Cloneable, StructuredPojo
Information about the result.
| Constructor and Description |
|---|
ResultData() |
| Modifier and Type | Method and Description |
|---|---|
ResultData |
clone() |
boolean |
equals(Object obj) |
DataSummary |
getData()
Summary of the recommended content.
|
Document |
getDocument()
The document.
|
Double |
getRelevanceScore()
The relevance score of the results.
|
String |
getResultId()
The identifier of the result data.
|
String |
getType()
The type of the query result.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setData(DataSummary data)
Summary of the recommended content.
|
void |
setDocument(Document document)
The document.
|
void |
setRelevanceScore(Double relevanceScore)
The relevance score of the results.
|
void |
setResultId(String resultId)
The identifier of the result data.
|
void |
setType(String type)
The type of the query result.
|
String |
toString()
Returns a string representation of this object.
|
ResultData |
withData(DataSummary data)
Summary of the recommended content.
|
ResultData |
withDocument(Document document)
The document.
|
ResultData |
withRelevanceScore(Double relevanceScore)
The relevance score of the results.
|
ResultData |
withResultId(String resultId)
The identifier of the result data.
|
ResultData |
withType(QueryResultType type)
The type of the query result.
|
ResultData |
withType(String type)
The type of the query result.
|
public void setData(DataSummary data)
Summary of the recommended content.
data - Summary of the recommended content.public DataSummary getData()
Summary of the recommended content.
public ResultData withData(DataSummary data)
Summary of the recommended content.
data - Summary of the recommended content.public void setDocument(Document document)
The document.
document - The document.public Document getDocument()
The document.
public ResultData withDocument(Document document)
The document.
document - The document.public void setRelevanceScore(Double relevanceScore)
The relevance score of the results.
relevanceScore - The relevance score of the results.public Double getRelevanceScore()
The relevance score of the results.
public ResultData withRelevanceScore(Double relevanceScore)
The relevance score of the results.
relevanceScore - The relevance score of the results.public void setResultId(String resultId)
The identifier of the result data.
resultId - The identifier of the result data.public String getResultId()
The identifier of the result data.
public ResultData withResultId(String resultId)
The identifier of the result data.
resultId - The identifier of the result data.public void setType(String type)
The type of the query result.
type - The type of the query result.QueryResultTypepublic String getType()
The type of the query result.
QueryResultTypepublic ResultData withType(String type)
The type of the query result.
type - The type of the query result.QueryResultTypepublic ResultData withType(QueryResultType type)
The type of the query result.
type - The type of the query result.QueryResultTypepublic String toString()
toString in class ObjectObject.toString()public ResultData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.