Class ImageListOptions
- java.lang.Object
-
- org.jclouds.http.options.BaseHttpRequestOptions
-
- org.jclouds.digitalocean2.domain.options.ListOptions
-
- org.jclouds.digitalocean2.domain.options.ImageListOptions
-
- All Implemented Interfaces:
HttpRequestOptions
public class ImageListOptions extends ListOptions
Custom options to filter the list of images.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageListOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
PRIVATE_PARAM
static String
TYPE_PARAM
-
Fields inherited from class org.jclouds.digitalocean2.domain.options.ListOptions
PAGE_PARAM, PER_PAGE_PARAM
-
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
-
-
Constructor Summary
Constructors Constructor Description ImageListOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageListOptions
page(int page)
Configures the number of the page to be returned.ImageListOptions
perPage(int perPage)
Configures the number of entries to return in each page.ImageListOptions
privateImages(boolean privateImages)
Get the images of the current user.ImageListOptions
type(String type)
Configures the type of the images to be retrieved.-
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
-
-
-
-
Field Detail
-
TYPE_PARAM
public static final String TYPE_PARAM
- See Also:
- Constant Field Values
-
PRIVATE_PARAM
public static final String PRIVATE_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public ImageListOptions type(String type)
Configures the type of the images to be retrieved.
-
privateImages
public ImageListOptions privateImages(boolean privateImages)
Get the images of the current user.
-
perPage
public ImageListOptions perPage(int perPage)
Description copied from class:ListOptions
Configures the number of entries to return in each page.- Overrides:
perPage
in classListOptions
-
page
public ImageListOptions page(int page)
Description copied from class:ListOptions
Configures the number of the page to be returned.- Overrides:
page
in classListOptions
-
-