Class JmesPathRuntime.Value

java.lang.Object
software.amazon.awssdk.services.acm.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.
  • Constructor Details

    • Value

      public Value(Object value)
      Create a non-projection value, where the value type is determined reflectively.
  • Method Details

    • 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. See stringValue.
    • 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

      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

      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

      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

      Perform a multi-select list expression on this value: https://jmespath.org/specification.html#multiselect-list
    • multiSelectHash

      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

      public JmesPathRuntime.Value not()
      Perform a NOT conversion on this value: https://jmespath.org/specification.html#not-expressions
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object