public ListHostsRequest withNextToken(String nextToken) {
        setNextToken(nextToken);
        return this;
    }
<p>
The token that was returned from the previous <code>ListHosts</code> call, which can be used to return the next
set of hosts in the list.
</p>

@param nextToken
       The token that was returned from the previous <code>ListHosts</code> call, which can be used to return the
       next set of hosts in the list.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeconnections/src/main/java/com/amazonaws/services/codeconnections/model/ListHostsRequest.java