Class JmesPathRuntime.Value
- java.lang.Object
-
- software.amazon.awssdk.services.elasticache.jmespath.internal.JmesPathRuntime.Value
-
- Enclosing class:
- JmesPathRuntime
public static final class JmesPathRuntime.Value extends Object
An intermediate value for JMESPath expressions, encapsulating the different data types supported by JMESPath and the operations on that data.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmesPathRuntime.Valueand(JmesPathRuntime.Value rhs)Perform an AND comparison between this value and another one: https://jmespath.org/specification.html#or-expressionsBooleanbooleanValue()Retrieve the actual value that this represents, as a Boolean.JmesPathRuntime.Valuecompare(String comparison, JmesPathRuntime.Value rhs)Compare this value to another value, using the specified comparison operator: https://jmespath.org/specification.html#comparison-operatorsJmesPathRuntime.Valueconstant(Object constant)Convert this value to a new constant value, discarding the current value.JmesPathRuntime.Valueconstant(JmesPathRuntime.Value value)Convert this value to a new constant value, discarding the current value.JmesPathRuntime.Valuecontains(JmesPathRuntime.Value rhs)Execute the contains function, with this value as the first parameter: https://jmespath.org/specification.html#containsbooleanequals(Object o)JmesPathRuntime.Valuefield(String fieldName)Retrieve an identifier from this value: https://jmespath.org/specification.html#identifiersJmesPathRuntime.Valuefilter(Function<JmesPathRuntime.Value,JmesPathRuntime.Value> predicate)Filter this value: https://jmespath.org/specification.html#filter-expressionsJmesPathRuntime.Valueflatten()Execute a flattening expression on this value: https://jmespath.org/specification.html#flatten-operatorinthashCode()JmesPathRuntime.Valuekeys()JmesPathRuntime.Valuelength()Execute the length function, with this value as the first parameter: https://jmespath.org/specification.html#lengthJmesPathRuntime.ValuemultiSelectHash(Map<String,Function<JmesPathRuntime.Value,JmesPathRuntime.Value>> selections)Perform a multi-select hash expression on this value: https://jmespath.org/specification.html#multiselect-hashJmesPathRuntime.ValuemultiSelectList(Function<JmesPathRuntime.Value,JmesPathRuntime.Value>... functions)Perform a multi-select list expression on this value: https://jmespath.org/specification.html#multiselect-listJmesPathRuntime.Valuenot()Perform a NOT conversion on this value: https://jmespath.org/specification.html#not-expressionsJmesPathRuntime.Valueor(JmesPathRuntime.Value rhs)Perform an OR comparison between this value and another one: https://jmespath.org/specification.html#or-expressionsStringstringValue()Retrieve the actual value that this represents, as a String.List<String>stringValues()Retrieve the actual value that this represents, as a list of String.Map<String,String>stringValuesMap()Retrieve the actual value that this represents, as a map of Strings.StringtoString()Objectvalue()Retrieve the actual value that this represents (this will be the same value passed to the constructor).List<Object>values()Retrieve the actual value that this represents, as a list of object.JmesPathRuntime.Valuewildcard()Execute a wildcard expression on this value: https://jmespath.org/specification.html#wildcard-expressions
-
-
-
Constructor Detail
-
Value
public Value(Object value)
Create a non-projection value, where the value type is determined reflectively.
-
-
Method Detail
-
value
public Object value()
Retrieve the actual value that this represents (this will be the same value passed to the constructor).
-
values
public List<Object> values()
Retrieve the actual value that this represents, as a list of object.
-
booleanValue
public Boolean booleanValue()
Retrieve the actual value that this represents, as a Boolean. Note that only null, boolean and string types are supported.
-
stringValue
public String stringValue()
Retrieve the actual value that this represents, as a String. Note that collection types are not supported.
-
stringValues
public List<String> stringValues()
Retrieve the actual value that this represents, as a list of String. Note that if the contents of the list is not String, an exception is thrown. If the value has a different type, the code makes a best effort to return a single element list of String. SeestringValue.
-
stringValuesMap
public Map<String,String> stringValuesMap()
Retrieve the actual value that this represents, as a map of Strings. Note that if the contents of the map are not String, or if the value has a different type, an exception is thrown.
-
constant
public JmesPathRuntime.Value constant(JmesPathRuntime.Value value)
Convert this value to a new constant value, discarding the current value.
-
constant
public JmesPathRuntime.Value constant(Object constant)
Convert this value to a new constant value, discarding the current value.
-
wildcard
public JmesPathRuntime.Value wildcard()
Execute a wildcard expression on this value: https://jmespath.org/specification.html#wildcard-expressions
-
flatten
public JmesPathRuntime.Value flatten()
Execute a flattening expression on this value: https://jmespath.org/specification.html#flatten-operator
-
field
public JmesPathRuntime.Value field(String fieldName)
Retrieve an identifier from this value: https://jmespath.org/specification.html#identifiers
-
filter
public JmesPathRuntime.Value filter(Function<JmesPathRuntime.Value,JmesPathRuntime.Value> predicate)
Filter this value: https://jmespath.org/specification.html#filter-expressions
-
length
public JmesPathRuntime.Value length()
Execute the length function, with this value as the first parameter: https://jmespath.org/specification.html#length
-
keys
public JmesPathRuntime.Value keys()
-
contains
public JmesPathRuntime.Value contains(JmesPathRuntime.Value rhs)
Execute the contains function, with this value as the first parameter: https://jmespath.org/specification.html#contains
-
compare
public JmesPathRuntime.Value compare(String comparison, JmesPathRuntime.Value rhs)
Compare this value to another value, using the specified comparison operator: https://jmespath.org/specification.html#comparison-operators
-
multiSelectList
@SafeVarargs public final JmesPathRuntime.Value multiSelectList(Function<JmesPathRuntime.Value,JmesPathRuntime.Value>... functions)
Perform a multi-select list expression on this value: https://jmespath.org/specification.html#multiselect-list
-
multiSelectHash
public final JmesPathRuntime.Value multiSelectHash(Map<String,Function<JmesPathRuntime.Value,JmesPathRuntime.Value>> selections)
Perform a multi-select hash expression on this value: https://jmespath.org/specification.html#multiselect-hash
-
or
public JmesPathRuntime.Value or(JmesPathRuntime.Value rhs)
Perform an OR comparison between this value and another one: https://jmespath.org/specification.html#or-expressions
-
and
public JmesPathRuntime.Value and(JmesPathRuntime.Value rhs)
Perform an AND comparison between this value and another one: https://jmespath.org/specification.html#or-expressions
-
not
public JmesPathRuntime.Value not()
Perform a NOT conversion on this value: https://jmespath.org/specification.html#not-expressions
-
-