public final class ListOptions extends ListOptions
listPage
REST methods.Modifier and Type | Class and Description |
---|---|
static class |
ListOptions.Builder |
formParameters, headers, pathSuffix, payload, queryParameters
Constructor and Description |
---|
ListOptions() |
Modifier and Type | Method and Description |
---|---|
ListOptions |
filter(String filter)
Optional.
|
ListOptions |
maxResults(Integer maxResults)
Sets Maximum count of results to be returned.
|
buildFormParameters, buildPathSuffix, buildQueryParameters, buildRequestHeaders, buildStringPayload, equals, getFirstFormOrNull, getFirstHeaderOrNull, getFirstQueryOrNull, hashCode, replaceHeader, toString
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 RUNNING
name eq '."my_instance_[0-9]+'
public ListOptions maxResults(Integer maxResults)
maxResults
in class ListOptions
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.