Class ListOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.packet.domain.options.ListOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class ListOptions extends BaseHttpRequestOptions
Options to customize how paginated lists are returned.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
PAGE_PARAM
static String
PER_PAGE_PARAM
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description ListOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListOptions
page(int page)
Configures the number of the page to be returned.ListOptions
perPage(int perPage)
Configures the number of entries to return in each page.-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Field Detail
-
PAGE_PARAM
public static final String PAGE_PARAM
- See Also:
- Constant Field Values
-
PER_PAGE_PARAM
public static final String PER_PAGE_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
perPage
public ListOptions perPage(int perPage)
Configures the number of entries to return in each page.
-
page
public ListOptions page(int page)
Configures the number of the page to be returned.
-
-