|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.http.options.BaseHttpRequestOptions
org.jclouds.googlecomputeengine.options.ListOptions
public class ListOptions
Allows to optionally specify a filter, max results and a page token for listFirstPage() REST methods.
| 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 |
|---|
public ListOptions()
| Method Detail |
|---|
public ListOptions filter(String filter)
<field_name> <comparison_string> <literal_string>
<field_name>: The name of the field you want to compare. The field name must be valid for the
type of resource being filtered. Only atomic field types are supported (string, number,
boolean). Array and object fields are not currently supported.<comparison_string>: The comparison string, either eq (equals) or ne (not equals).<literal_string>: The literal string value to filter to. The literal value must be valid
for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a
regular expression using RE2 syntax. The literal value must match the entire field. For example,
when filtering instances, name eq my_instance won't work, but name eq .*my_instance will work.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 RUNNINGname eq '."my_instance_[0-9]+'
public ListOptions maxResults(Integer maxResults)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||