@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 unique identifier for the search.
|
List<QueryResultItem> |
getResultItems()
The results of the search.
|
Integer |
getTotalNumberOfResults()
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
int |
hashCode() |
void |
setFacetResults(Collection<FacetResult> facetResults)
Contains the facet results.
|
void |
setQueryId(String queryId)
The unique identifier for the search.
|
void |
setResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
void |
setTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
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 unique identifier for the search.
|
QueryResult |
withResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
QueryResult |
withResultItems(QueryResultItem... resultItems)
The results of the search.
|
QueryResult |
withTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setQueryId(String queryId)
The unique identifier for the search. You use QueryId to identify the search when using the feedback
API.
queryId - The unique identifier for the search. You use QueryId to identify the search when using the
feedback API.public String getQueryId()
The unique 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 unique identifier for the search. You use QueryId to identify the search when using the feedback
API.
queryId - The unique 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 String toString()
toString in class ObjectObject.toString()public QueryResult clone()