/** * <p> * NextToken is a string that is returned in some command responses. It indicates that not all entries have been * returned, and that you must run at least one more request to get remaining items. To get remaining results, call * <code>DescribeEvents</code> again, and assign the token from the previous results as the value of the * <code>nextToken</code> parameter. If there are no more results, the response object's <code>nextToken</code> * parameter value is <code>null</code>. Setting a <code>nextToken</code> value that was not returned in your * previous results causes an <code>InvalidNextTokenException</code> to occur. * </p> * * @param nextToken * NextToken is a string that is returned in some command responses. It indicates that not all entries have * been returned, and that you must run at least one more request to get remaining items. To get remaining * results, call <code>DescribeEvents</code> again, and assign the token from the previous results as the * value of the <code>nextToken</code> parameter. If there are no more results, the response object's * <code>nextToken</code> parameter value is <code>null</code>. Setting a <code>nextToken</code> value that * was not returned in your previous results causes an <code>InvalidNextTokenException</code> to occur. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEventsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
describeEventsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));