@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 number of items returned by the search.
|
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 number of items returned by the search.
|
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 number of items returned by the search.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public 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 number of items returned by the search. Use this to determine when you have requested the last set of results.
totalNumberOfResults
- The number of items returned by the search. Use this to determine when you have requested the last set of
results.public Integer getTotalNumberOfResults()
The number of items returned by the search. Use this to determine when you have requested the last set of results.
public QueryResult withTotalNumberOfResults(Integer totalNumberOfResults)
The number of items returned by the search. Use this to determine when you have requested the last set of results.
totalNumberOfResults
- The number of items returned by the search. Use this to determine when you have requested the last set of
results.public String toString()
toString
in class Object
Object.toString()
public QueryResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.