@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FeaturedResultsItem extends Object implements Serializable, Cloneable, StructuredPojo
A single featured result item. A featured result is displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.
Constructor and Description |
---|
FeaturedResultsItem() |
Modifier and Type | Method and Description |
---|---|
FeaturedResultsItem |
clone() |
boolean |
equals(Object obj) |
List<AdditionalResultAttribute> |
getAdditionalAttributes()
One or more additional attributes associated with the featured result.
|
List<DocumentAttribute> |
getDocumentAttributes()
An array of document attributes assigned to a featured document in the search results.
|
TextWithHighlights |
getDocumentExcerpt() |
String |
getDocumentId()
The identifier of the featured document.
|
TextWithHighlights |
getDocumentTitle() |
String |
getDocumentURI()
The source URI location of the featured document.
|
String |
getFeedbackToken()
A token that identifies a particular featured result from a particular query.
|
String |
getId()
The identifier of the featured result.
|
String |
getType()
The type of document within the featured result response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the featured result.
|
void |
setDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a featured document in the search results.
|
void |
setDocumentExcerpt(TextWithHighlights documentExcerpt) |
void |
setDocumentId(String documentId)
The identifier of the featured document.
|
void |
setDocumentTitle(TextWithHighlights documentTitle) |
void |
setDocumentURI(String documentURI)
The source URI location of the featured document.
|
void |
setFeedbackToken(String feedbackToken)
A token that identifies a particular featured result from a particular query.
|
void |
setId(String id)
The identifier of the featured result.
|
void |
setType(String type)
The type of document within the featured result response.
|
String |
toString()
Returns a string representation of this object.
|
FeaturedResultsItem |
withAdditionalAttributes(AdditionalResultAttribute... additionalAttributes)
One or more additional attributes associated with the featured result.
|
FeaturedResultsItem |
withAdditionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the featured result.
|
FeaturedResultsItem |
withDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a featured document in the search results.
|
FeaturedResultsItem |
withDocumentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a featured document in the search results.
|
FeaturedResultsItem |
withDocumentExcerpt(TextWithHighlights documentExcerpt) |
FeaturedResultsItem |
withDocumentId(String documentId)
The identifier of the featured document.
|
FeaturedResultsItem |
withDocumentTitle(TextWithHighlights documentTitle) |
FeaturedResultsItem |
withDocumentURI(String documentURI)
The source URI location of the featured document.
|
FeaturedResultsItem |
withFeedbackToken(String feedbackToken)
A token that identifies a particular featured result from a particular query.
|
FeaturedResultsItem |
withId(String id)
The identifier of the featured result.
|
FeaturedResultsItem |
withType(QueryResultType type)
The type of document within the featured result response.
|
FeaturedResultsItem |
withType(String type)
The type of document within the featured result response.
|
public void setId(String id)
The identifier of the featured result.
id
- The identifier of the featured result.public String getId()
The identifier of the featured result.
public FeaturedResultsItem withId(String id)
The identifier of the featured result.
id
- The identifier of the featured result.public void setType(String type)
The type of document within the featured result response. For example, a response could include a question-answer type that's relevant to the query.
type
- The type of document within the featured result response. For example, a response could include a
question-answer type that's relevant to the query.QueryResultType
public String getType()
The type of document within the featured result response. For example, a response could include a question-answer type that's relevant to the query.
QueryResultType
public FeaturedResultsItem withType(String type)
The type of document within the featured result response. For example, a response could include a question-answer type that's relevant to the query.
type
- The type of document within the featured result response. For example, a response could include a
question-answer type that's relevant to the query.QueryResultType
public FeaturedResultsItem withType(QueryResultType type)
The type of document within the featured result response. For example, a response could include a question-answer type that's relevant to the query.
type
- The type of document within the featured result response. For example, a response could include a
question-answer type that's relevant to the query.QueryResultType
public List<AdditionalResultAttribute> getAdditionalAttributes()
One or more additional attributes associated with the featured result.
public void setAdditionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the featured result.
additionalAttributes
- One or more additional attributes associated with the featured result.public FeaturedResultsItem withAdditionalAttributes(AdditionalResultAttribute... additionalAttributes)
One or more additional attributes associated with the featured result.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalAttributes(java.util.Collection)
or withAdditionalAttributes(java.util.Collection)
if you want to override the existing values.
additionalAttributes
- One or more additional attributes associated with the featured result.public FeaturedResultsItem withAdditionalAttributes(Collection<AdditionalResultAttribute> additionalAttributes)
One or more additional attributes associated with the featured result.
additionalAttributes
- One or more additional attributes associated with the featured result.public void setDocumentId(String documentId)
The identifier of the featured document.
documentId
- The identifier of the featured document.public String getDocumentId()
The identifier of the featured document.
public FeaturedResultsItem withDocumentId(String documentId)
The identifier of the featured document.
documentId
- The identifier of the featured document.public void setDocumentTitle(TextWithHighlights documentTitle)
documentTitle
- public TextWithHighlights getDocumentTitle()
public FeaturedResultsItem withDocumentTitle(TextWithHighlights documentTitle)
documentTitle
- public void setDocumentExcerpt(TextWithHighlights documentExcerpt)
documentExcerpt
- public TextWithHighlights getDocumentExcerpt()
public FeaturedResultsItem withDocumentExcerpt(TextWithHighlights documentExcerpt)
documentExcerpt
- public void setDocumentURI(String documentURI)
The source URI location of the featured document.
documentURI
- The source URI location of the featured document.public String getDocumentURI()
The source URI location of the featured document.
public FeaturedResultsItem withDocumentURI(String documentURI)
The source URI location of the featured document.
documentURI
- The source URI location of the featured document.public List<DocumentAttribute> getDocumentAttributes()
An array of document attributes assigned to a featured document in the search results. For example, the document
author (_author
) or the source URI (_source_uri
) of the document.
_author
) or the source URI (_source_uri
) of the document.public void setDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a featured 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 featured document in the search results. For example, the
document author (_author
) or the source URI (_source_uri
) of the document.public FeaturedResultsItem withDocumentAttributes(DocumentAttribute... documentAttributes)
An array of document attributes assigned to a featured 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 featured document in the search results. For example, the
document author (_author
) or the source URI (_source_uri
) of the document.public FeaturedResultsItem withDocumentAttributes(Collection<DocumentAttribute> documentAttributes)
An array of document attributes assigned to a featured 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 featured document in the search results. For example, the
document author (_author
) or the source URI (_source_uri
) of the document.public void setFeedbackToken(String feedbackToken)
A token that identifies a particular featured result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.
feedbackToken
- A token that identifies a particular featured result from a particular query. Use this token to provide
click-through feedback for the result. For more information, see Submitting feedback.public String getFeedbackToken()
A token that identifies a particular featured result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.
public FeaturedResultsItem withFeedbackToken(String feedbackToken)
A token that identifies a particular featured result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.
feedbackToken
- A token that identifies a particular featured result from a particular query. Use this token to provide
click-through feedback for the result. For more information, see Submitting feedback.public String toString()
toString
in class Object
Object.toString()
public FeaturedResultsItem clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.