public LookupEventsResult withNextToken(String nextToken) {
        setNextToken(nextToken);
        return this;
    }
<p>
The token to use to get the next page of results after a previous API call. If the token does not appear, there
are no more results to return. The token must be passed in with the same parameters as the previous call. For
example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with
NextToken should include those same parameters.
</p>

@param nextToken
       The token to use to get the next page of results after a previous API call. If the token does not appear,
       there are no more results to return. The token must be passed in with the same parameters as the previous
       call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root',
       the call with NextToken should include those same parameters.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/LookupEventsResult.java