@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
SearchResult() |
| Modifier and Type | Method and Description |
|---|---|
SearchResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
If the result of the previous
Search request was truncated, the response includes a NextToken. |
List<SearchRecord> |
getResults()
A list of
SearchRecord objects. |
int |
hashCode() |
void |
setNextToken(String nextToken)
If the result of the previous
Search request was truncated, the response includes a NextToken. |
void |
setResults(Collection<SearchRecord> results)
A list of
SearchRecord objects. |
String |
toString()
Returns a string representation of this object.
|
SearchResult |
withNextToken(String nextToken)
If the result of the previous
Search request was truncated, the response includes a NextToken. |
SearchResult |
withResults(Collection<SearchRecord> results)
A list of
SearchRecord objects. |
SearchResult |
withResults(SearchRecord... results)
A list of
SearchRecord objects. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic List<SearchRecord> getResults()
A list of SearchRecord objects.
SearchRecord objects.public void setResults(Collection<SearchRecord> results)
A list of SearchRecord objects.
results - A list of SearchRecord objects.public SearchResult withResults(SearchRecord... results)
A list of SearchRecord objects.
NOTE: This method appends the values to the existing list (if any). Use
setResults(java.util.Collection) or withResults(java.util.Collection) if you want to override
the existing values.
results - A list of SearchRecord objects.public SearchResult withResults(Collection<SearchRecord> results)
A list of SearchRecord objects.
results - A list of SearchRecord objects.public void setNextToken(String nextToken)
If the result of the previous Search request was truncated, the response includes a NextToken. To
retrieve the next set of results, use the token in the next request.
nextToken - If the result of the previous Search request was truncated, the response includes a
NextToken. To retrieve the next set of results, use the token in the next request.public String getNextToken()
If the result of the previous Search request was truncated, the response includes a NextToken. To
retrieve the next set of results, use the token in the next request.
Search request was truncated, the response includes a
NextToken. To retrieve the next set of results, use the token in the next request.public SearchResult withNextToken(String nextToken)
If the result of the previous Search request was truncated, the response includes a NextToken. To
retrieve the next set of results, use the token in the next request.
nextToken - If the result of the previous Search request was truncated, the response includes a
NextToken. To retrieve the next set of results, use the token in the next request.public String toString()
toString in class ObjectObject.toString()public SearchResult clone()