> + * Pagination options used to specify the collection responses.
> + *
> + * @author Roman Coedo
> + */
> +public class PaginationOptions extends BaseHttpRequestOptions {
> +
> + private final static int MIN_LIMIT = 1;
> + private final static int MAX_LIMIT = 1000;
> +
> + public PaginationOptions marker(String marker) {
> + queryParameters.put("marker", checkNotNull(marker, "marker"));
> + return this;
> + }
> +
> + public PaginationOptions limit(int limit) {
> + checkArgument(limit >= MIN_LIMIT, "limit must be >= " + MIN_LIMIT);
`"limit must be >= " + MIN_LIMIT + " but was " + limit`?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/4/files#r13034716