Class JmesPathRuntime.Value
java.lang.Object
software.amazon.awssdk.services.ecs.jmespath.internal.JmesPathRuntime.Value
- Enclosing class:
JmesPathRuntime
An intermediate value for JMESPath expressions, encapsulating the different data types supported by JMESPath and
the operations on that data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand
(JmesPathRuntime.Value rhs) Perform an AND comparison between this value and another one: https://jmespath.org/specification.html#or-expressionsRetrieve the actual value that this represents, as a Boolean.compare
(String comparison, JmesPathRuntime.Value rhs) Compare this value to another value, using the specified comparison operator: https://jmespath.org/specification.html#comparison-operatorsConvert this value to a new constant value, discarding the current value.constant
(JmesPathRuntime.Value value) Convert this value to a new constant value, discarding the current value.Execute the contains function, with this value as the first parameter: https://jmespath.org/specification.html#containsboolean
Retrieve an identifier from this value: https://jmespath.org/specification.html#identifiersfilter
(Function<JmesPathRuntime.Value, JmesPathRuntime.Value> predicate) Filter this value: https://jmespath.org/specification.html#filter-expressionsflatten()
Execute a flattening expression on this value: https://jmespath.org/specification.html#flatten-operatorint
hashCode()
keys()
length()
Execute the length function, with this value as the first parameter: https://jmespath.org/specification.html#lengthfinal 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-hashfinal JmesPathRuntime.Value
multiSelectList
(Function<JmesPathRuntime.Value, JmesPathRuntime.Value>... functions) Perform a multi-select list expression on this value: https://jmespath.org/specification.html#multiselect-listnot()
Perform a NOT conversion on this value: https://jmespath.org/specification.html#not-expressionsor
(JmesPathRuntime.Value rhs) Perform an OR comparison between this value and another one: https://jmespath.org/specification.html#or-expressionsRetrieve the actual value that this represents, as a String.Retrieve the actual value that this represents, as a list of String.Retrieve the actual value that this represents, as a map of Strings.toString()
value()
Retrieve the actual value that this represents (this will be the same value passed to the constructor).values()
Retrieve the actual value that this represents, as a list of object.wildcard()
Execute a wildcard expression on this value: https://jmespath.org/specification.html#wildcard-expressions
-
Constructor Details
-
Value
Create a non-projection value, where the value type is determined reflectively.
-
-
Method Details
-
value
Retrieve the actual value that this represents (this will be the same value passed to the constructor). -
values
-
booleanValue
Retrieve the actual value that this represents, as a Boolean. Note that only null, boolean and string types are supported. -
stringValue
Retrieve the actual value that this represents, as a String. Note that collection types are not supported. -
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
-
constant
Convert this value to a new constant value, discarding the current value. -
constant
Convert this value to a new constant value, discarding the current value. -
wildcard
Execute a wildcard expression on this value: https://jmespath.org/specification.html#wildcard-expressions -
flatten
Execute a flattening expression on this value: https://jmespath.org/specification.html#flatten-operator -
field
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
Execute the length function, with this value as the first parameter: https://jmespath.org/specification.html#length -
keys
-
contains
Execute the contains function, with this value as the first parameter: https://jmespath.org/specification.html#contains -
compare
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
Perform an OR comparison between this value and another one: https://jmespath.org/specification.html#or-expressions -
and
Perform an AND comparison between this value and another one: https://jmespath.org/specification.html#or-expressions -
not
Perform a NOT conversion on this value: https://jmespath.org/specification.html#not-expressions -
equals
-
hashCode
-
toString
-