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 classImageListOptions.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringPRIVATE_PARAMstatic StringTYPE_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 ImageListOptionspage(int page)Configures the number of the page to be returned.ImageListOptionsperPage(int perPage)Configures the number of entries to return in each page.ImageListOptionsprivateImages(boolean privateImages)Get the images of the current user.ImageListOptionstype(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:ListOptionsConfigures the number of entries to return in each page.- Overrides:
perPagein classListOptions
-
page
public ImageListOptions page(int page)
Description copied from class:ListOptionsConfigures the number of the page to be returned.- Overrides:
pagein classListOptions
-
-