@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetrieveResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
RetrieveResult() |
| Modifier and Type | Method and Description |
|---|---|
RetrieveResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
If there are more results than can fit in the response, the response returns a
nextToken. |
List<KnowledgeBaseRetrievalResult> |
getRetrievalResults()
A list of results from querying the knowledge base.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
If there are more results than can fit in the response, the response returns a
nextToken. |
void |
setRetrievalResults(Collection<KnowledgeBaseRetrievalResult> retrievalResults)
A list of results from querying the knowledge base.
|
String |
toString()
Returns a string representation of this object.
|
RetrieveResult |
withNextToken(String nextToken)
If there are more results than can fit in the response, the response returns a
nextToken. |
RetrieveResult |
withRetrievalResults(Collection<KnowledgeBaseRetrievalResult> retrievalResults)
A list of results from querying the knowledge base.
|
RetrieveResult |
withRetrievalResults(KnowledgeBaseRetrievalResult... retrievalResults)
A list of results from querying the knowledge base.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setNextToken(String nextToken)
If there are more results than can fit in the response, the response returns a nextToken. Use this
token in the nextToken field of another request to retrieve the next batch of results.
nextToken - If there are more results than can fit in the response, the response returns a nextToken. Use
this token in the nextToken field of another request to retrieve the next batch of results.public String getNextToken()
If there are more results than can fit in the response, the response returns a nextToken. Use this
token in the nextToken field of another request to retrieve the next batch of results.
nextToken.
Use this token in the nextToken field of another request to retrieve the next batch of
results.public RetrieveResult withNextToken(String nextToken)
If there are more results than can fit in the response, the response returns a nextToken. Use this
token in the nextToken field of another request to retrieve the next batch of results.
nextToken - If there are more results than can fit in the response, the response returns a nextToken. Use
this token in the nextToken field of another request to retrieve the next batch of results.public List<KnowledgeBaseRetrievalResult> getRetrievalResults()
A list of results from querying the knowledge base.
public void setRetrievalResults(Collection<KnowledgeBaseRetrievalResult> retrievalResults)
A list of results from querying the knowledge base.
retrievalResults - A list of results from querying the knowledge base.public RetrieveResult withRetrievalResults(KnowledgeBaseRetrievalResult... retrievalResults)
A list of results from querying the knowledge base.
NOTE: This method appends the values to the existing list (if any). Use
setRetrievalResults(java.util.Collection) or withRetrievalResults(java.util.Collection) if you
want to override the existing values.
retrievalResults - A list of results from querying the knowledge base.public RetrieveResult withRetrievalResults(Collection<KnowledgeBaseRetrievalResult> retrievalResults)
A list of results from querying the knowledge base.
retrievalResults - A list of results from querying the knowledge base.public String toString()
toString in class ObjectObject.toString()public RetrieveResult clone()