@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QueryResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
QueryResult() |
Modifier and Type | Method and Description |
---|---|
QueryResult |
clone() |
boolean |
equals(Object obj) |
List<FacetResult> |
getFacetResults()
Contains the facet results.
|
String |
getQueryId()
The identifier for the search.
|
List<QueryResultItem> |
getResultItems()
The results of the search.
|
List<SpellCorrectedQuery> |
getSpellCorrectedQueries()
A list of information related to suggested spell corrections for a query.
|
Integer |
getTotalNumberOfResults()
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
List<Warning> |
getWarnings()
A list of warning codes and their messages on problems with your query.
|
int |
hashCode() |
void |
setFacetResults(Collection<FacetResult> facetResults)
Contains the facet results.
|
void |
setQueryId(String queryId)
The identifier for the search.
|
void |
setResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
void |
setSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
void |
setTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
void |
setWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
|
String |
toString()
Returns a string representation of this object.
|
QueryResult |
withFacetResults(Collection<FacetResult> facetResults)
Contains the facet results.
|
QueryResult |
withFacetResults(FacetResult... facetResults)
Contains the facet results.
|
QueryResult |
withQueryId(String queryId)
The identifier for the search.
|
QueryResult |
withResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
QueryResult |
withResultItems(QueryResultItem... resultItems)
The results of the search.
|
QueryResult |
withSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
QueryResult |
withSpellCorrectedQueries(SpellCorrectedQuery... spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
QueryResult |
withTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
QueryResult |
withWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
|
QueryResult |
withWarnings(Warning... warnings)
A list of warning codes and their messages on problems with your query.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setQueryId(String queryId)
The identifier for the search. You use QueryId
to identify the search when using the feedback API.
queryId
- The identifier for the search. You use QueryId
to identify the search when using the feedback
API.public String getQueryId()
The identifier for the search. You use QueryId
to identify the search when using the feedback API.
QueryId
to identify the search when using the
feedback API.public QueryResult withQueryId(String queryId)
The identifier for the search. You use QueryId
to identify the search when using the feedback API.
queryId
- The identifier for the search. You use QueryId
to identify the search when using the feedback
API.public List<QueryResultItem> getResultItems()
The results of the search.
public void setResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
resultItems
- The results of the search.public QueryResult withResultItems(QueryResultItem... resultItems)
The results of the search.
NOTE: This method appends the values to the existing list (if any). Use
setResultItems(java.util.Collection)
or withResultItems(java.util.Collection)
if you want to
override the existing values.
resultItems
- The results of the search.public QueryResult withResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
resultItems
- The results of the search.public List<FacetResult> getFacetResults()
Contains the facet results. A FacetResult
contains the counts for each attribute key that was
specified in the Facets
input parameter.
FacetResult
contains the counts for each attribute key that
was specified in the Facets
input parameter.public void setFacetResults(Collection<FacetResult> facetResults)
Contains the facet results. A FacetResult
contains the counts for each attribute key that was
specified in the Facets
input parameter.
facetResults
- Contains the facet results. A FacetResult
contains the counts for each attribute key that was
specified in the Facets
input parameter.public QueryResult withFacetResults(FacetResult... facetResults)
Contains the facet results. A FacetResult
contains the counts for each attribute key that was
specified in the Facets
input parameter.
NOTE: This method appends the values to the existing list (if any). Use
setFacetResults(java.util.Collection)
or withFacetResults(java.util.Collection)
if you want to
override the existing values.
facetResults
- Contains the facet results. A FacetResult
contains the counts for each attribute key that was
specified in the Facets
input parameter.public QueryResult withFacetResults(Collection<FacetResult> facetResults)
Contains the facet results. A FacetResult
contains the counts for each attribute key that was
specified in the Facets
input parameter.
facetResults
- Contains the facet results. A FacetResult
contains the counts for each attribute key that was
specified in the Facets
input parameter.public void setTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
totalNumberOfResults
- The total number of items found by the search; however, you can only retrieve up to 100 items. For
example, if the search found 192 items, you can only retrieve the first 100 of the items.public Integer getTotalNumberOfResults()
The total number of items found by the search; however, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
public QueryResult withTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
totalNumberOfResults
- The total number of items found by the search; however, you can only retrieve up to 100 items. For
example, if the search found 192 items, you can only retrieve the first 100 of the items.public List<Warning> getWarnings()
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public void setWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
warnings
- A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public QueryResult withWarnings(Warning... warnings)
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
NOTE: This method appends the values to the existing list (if any). Use
setWarnings(java.util.Collection)
or withWarnings(java.util.Collection)
if you want to override
the existing values.
warnings
- A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public QueryResult withWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
warnings
- A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public List<SpellCorrectedQuery> getSpellCorrectedQueries()
A list of information related to suggested spell corrections for a query.
public void setSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
spellCorrectedQueries
- A list of information related to suggested spell corrections for a query.public QueryResult withSpellCorrectedQueries(SpellCorrectedQuery... spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
NOTE: This method appends the values to the existing list (if any). Use
setSpellCorrectedQueries(java.util.Collection)
or
withSpellCorrectedQueries(java.util.Collection)
if you want to override the existing values.
spellCorrectedQueries
- A list of information related to suggested spell corrections for a query.public QueryResult withSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
spellCorrectedQueries
- A list of information related to suggested spell corrections for a query.public String toString()
toString
in class Object
Object.toString()
public QueryResult clone()