org.jclouds.openstack.glance.v1_0.options
Class ListImageOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.openstack.v2_0.options.PaginationOptions
          extended by org.jclouds.openstack.glance.v1_0.options.ListImageOptions
All Implemented Interfaces:
org.jclouds.http.options.HttpRequestOptions

public class ListImageOptions
extends org.jclouds.openstack.v2_0.options.PaginationOptions

Usage The recommended way to instantiate a ListImageOptions object is to statically import ListImageOptions.Builder.* and invoke a static creation method for each option as needed:

import static org.jclouds.openstack.glance.v1_0.options.ListImageOptions.Builder.* // this will list the first 10 images with the name "name", minimum required disk of 5GB. list = api.list(name("newName"), limit(10), minDisk(5));

Author:
Adam Lowe
See Also:

Nested Class Summary
static class ListImageOptions.Builder
           
 
Field Summary
static ListImageOptions NONE
           
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
 
Constructor Summary
ListImageOptions()
           
 
Method Summary
 ListImageOptions changesSince(Date ifModifiedSince)
           
 ListImageOptions containerFormat(ContainerFormat containerFormat)
          Return only those images having a matching container format
 ListImageOptions diskFormat(DiskFormat diskFormat)
          Return only those images having a matching disk format
 ListImageOptions isProtected(boolean isProtected)
          Filter to only protected or unprotected images
 ListImageOptions isPublic(boolean isPublic)
          Return only public images or only private images
 ListImageOptions limit(int limit)
           
 ListImageOptions marker(String marker)
           
 ListImageOptions maxSize(long size)
          Return those images that have a size attribute less than or equal to size
 ListImageOptions minDisk(long disk)
          Return only those images having a matching min disk size
 ListImageOptions minRam(long ram)
          Return only those images having a matching min ram size
 ListImageOptions minSize(long size)
          Return those images that have a size attribute greater than or equal to size
 ListImageOptions name(String name)
          Return only those images having a matching name attribute
 ListImageOptions sortAscending()
          Ascending sort order (smallest first).
 ListImageOptions sortBy(ImageField key)
          Results will be ordered by the specified image attribute.
 ListImageOptions status(Image.Status status)
          Return only those images that have the requested status
 
Methods inherited from class org.jclouds.openstack.v2_0.options.PaginationOptions
queryParameters
 
Methods inherited from class org.jclouds.http.options.BaseHttpRequestOptions
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final ListImageOptions NONE
Constructor Detail

ListImageOptions

public ListImageOptions()
Method Detail

name

public ListImageOptions name(String name)
Return only those images having a matching name attribute


status

public ListImageOptions status(Image.Status status)
Return only those images that have the requested status


containerFormat

public ListImageOptions containerFormat(ContainerFormat containerFormat)
Return only those images having a matching container format


diskFormat

public ListImageOptions diskFormat(DiskFormat diskFormat)
Return only those images having a matching disk format


minRam

public ListImageOptions minRam(long ram)
Return only those images having a matching min ram size


minDisk

public ListImageOptions minDisk(long disk)
Return only those images having a matching min disk size


minSize

public ListImageOptions minSize(long size)
Return those images that have a size attribute greater than or equal to size


maxSize

public ListImageOptions maxSize(long size)
Return those images that have a size attribute less than or equal to size


isPublic

public ListImageOptions isPublic(boolean isPublic)
Return only public images or only private images


isProtected

public ListImageOptions isProtected(boolean isProtected)
Filter to only protected or unprotected images


sortBy

public ListImageOptions sortBy(ImageField key)
Results will be ordered by the specified image attribute.


sortAscending

public ListImageOptions sortAscending()
Ascending sort order (smallest first).

NOTE: default behavior is to sort descending (largest first)


changesSince

public ListImageOptions changesSince(Date ifModifiedSince)
Overrides:
changesSince in class org.jclouds.openstack.v2_0.options.PaginationOptions

marker

public ListImageOptions marker(String marker)
Overrides:
marker in class org.jclouds.openstack.v2_0.options.PaginationOptions

limit

public ListImageOptions limit(int limit)
Overrides:
limit in class org.jclouds.openstack.v2_0.options.PaginationOptions


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.