@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExpandedResultItem extends Object implements Serializable, Cloneable, StructuredPojo
A single expanded result in a collapsed group of search results.
An expanded result item contains information about an expanded result document within a collapsed group of search results. This includes the original location of the document, a list of attributes assigned to the document, and relevant text from the document that satisfies the query.
Constructor and Description |
---|
ExpandedResultItem() |
Modifier and Type | Method and Description |
---|---|
ExpandedResultItem |
clone() |
boolean |
equals(Object obj) |
List<DocumentAttribute> |
getDocumentAttributes()
An array of document attributes assigned to a document in the search results.
|
TextWithHighlights |
getDocumentExcerpt() |
String |
getDocumentId()
The idenitifier of the document.
|
TextWithHighlights |
getDocumentTitle() |
String |
getDocumentURI()
The URI of the original location of the document.
|
String |
getId()
The identifier for the expanded result.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a document in the search results.
|
void |
setDocumentExcerpt(TextWithHighlights documentExcerpt) |
void |
setDocumentId(String documentId)
The idenitifier of the document.
|
void |
setDocumentTitle(TextWithHighlights documentTitle) |
void |
setDocumentURI(String documentURI)
The URI of the original location of the document.
|
void |
setId(String id)
The identifier for the expanded result.
|
String |
toString()
Returns a string representation of this object.
|
ExpandedResultItem |
withDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a document in the search results.
|
ExpandedResultItem |
withDocumentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a document in the search results.
|
ExpandedResultItem |
withDocumentExcerpt(TextWithHighlights documentExcerpt) |
ExpandedResultItem |
withDocumentId(String documentId)
The idenitifier of the document.
|
ExpandedResultItem |
withDocumentTitle(TextWithHighlights documentTitle) |
ExpandedResultItem |
withDocumentURI(String documentURI)
The URI of the original location of the document.
|
ExpandedResultItem |
withId(String id)
The identifier for the expanded result.
|
public void setId(String id)
The identifier for the expanded result.
id
- The identifier for the expanded result.public String getId()
The identifier for the expanded result.
public ExpandedResultItem withId(String id)
The identifier for the expanded result.
id
- The identifier for the expanded result.public void setDocumentId(String documentId)
The idenitifier of the document.
documentId
- The idenitifier of the document.public String getDocumentId()
The idenitifier of the document.
public ExpandedResultItem withDocumentId(String documentId)
The idenitifier of the document.
documentId
- The idenitifier of the document.public void setDocumentTitle(TextWithHighlights documentTitle)
documentTitle
- public TextWithHighlights getDocumentTitle()
public ExpandedResultItem withDocumentTitle(TextWithHighlights documentTitle)
documentTitle
- public void setDocumentExcerpt(TextWithHighlights documentExcerpt)
documentExcerpt
- public TextWithHighlights getDocumentExcerpt()
public ExpandedResultItem withDocumentExcerpt(TextWithHighlights documentExcerpt)
documentExcerpt
- public void setDocumentURI(String documentURI)
The URI of the original location of the document.
documentURI
- The URI of the original location of the document.public String getDocumentURI()
The URI of the original location of the document.
public ExpandedResultItem withDocumentURI(String documentURI)
The URI of the original location of the document.
documentURI
- The URI of the original location of the document.public List<DocumentAttribute> getDocumentAttributes()
An array of document attributes assigned to a document in the search results. For example, the document author ("_author") or the source URI ("_source_uri") of the document.
public void setDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a document in the search results. For example, the document author ("_author") or the source URI ("_source_uri") of the document.
documentAttributes
- An array of document attributes assigned to a document in the search results. For example, the document
author ("_author") or the source URI ("_source_uri") of the document.public ExpandedResultItem withDocumentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a document in the search results. For example, the document author ("_author") or the source URI ("_source_uri") of the document.
NOTE: This method appends the values to the existing list (if any). Use
setDocumentAttributes(java.util.Collection)
or withDocumentAttributes(java.util.Collection)
if
you want to override the existing values.
documentAttributes
- An array of document attributes assigned to a document in the search results. For example, the document
author ("_author") or the source URI ("_source_uri") of the document.public ExpandedResultItem withDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a document in the search results. For example, the document author ("_author") or the source URI ("_source_uri") of the document.
documentAttributes
- An array of document attributes assigned to a document in the search results. For example, the document
author ("_author") or the source URI ("_source_uri") of the document.public String toString()
toString
in class Object
Object.toString()
public ExpandedResultItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.