org.jclouds.googlecomputeengine.options
Class ListOptions

java.lang.Object
  extended by org.jclouds.http.options.BaseHttpRequestOptions
      extended by org.jclouds.googlecomputeengine.options.ListOptions
All Implemented Interfaces:
org.jclouds.http.options.HttpRequestOptions

public class ListOptions
extends org.jclouds.http.options.BaseHttpRequestOptions

Allows to optionally specify a filter, max results and a page token for listFirstPage() REST methods.

Author:
David Alves
See Also:

Nested Class Summary
static class ListOptions.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.http.options.BaseHttpRequestOptions
formParameters, headers, pathSuffix, payload, queryParameters
 
Constructor Summary
ListOptions()
           
 
Method Summary
 ListOptions filter(String filter)
          Optional.
 ListOptions maxResults(Integer maxResults)
          Sets Maximum count of results to be returned.
 
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
 

Constructor Detail

ListOptions

public ListOptions()
Method Detail

filter

public ListOptions filter(String filter)
Optional. Filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must contain the following:

<field_name> <comparison_string> <literal_string>

For example:

filter=status ne RUNNING

The above filter returns only results whose status field does not equal RUNNING. You can also enclose your literal string in single, double, or no quotes. For example, all three of the following would be valid expressions:

filter=status ne "RUNNING"
filter=status ne 'RUNNING'
filter=status ne RUNNING

Complex regular expressions can also be used, like the following: name eq '."my_instance_[0-9]+'


maxResults

public ListOptions maxResults(Integer maxResults)
Sets Maximum count of results to be returned. Maximum and default value is 100. Acceptable items are 0 to 100, inclusive. (Default: 100)



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