public ListPackagesForDomainRequest withNextToken(String nextToken) {
        setNextToken(nextToken);
        return this;
    }
<p>
Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided,
returns results for the next page.
</p>

@param nextToken
       Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If
       provided, returns results for the next page.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/ListPackagesForDomainRequest.java