Package software.amazon.smithy.waiters
Class PathMatcher
java.lang.Object
software.amazon.smithy.waiters.PathMatcher
- All Implemented Interfaces:
software.amazon.smithy.model.node.ToNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PathMatcherfromNode(software.amazon.smithy.model.node.Node node) Creates a new instance from aNode.Gets the comparison performed on the list.Gets the expected return value of each element returned by the path.getPath()Gets the path to execute.inthashCode()software.amazon.smithy.model.node.NodetoNode()
-
Constructor Details
-
PathMatcher
- Parameters:
path- The path to execute.expected- The expected value of the path.comparator- Comparison performed on the list value.
-
-
Method Details
-
getPath
Gets the path to execute.- Returns:
- Returns the path to execute.
-
getExpected
Gets the expected return value of each element returned by the path.- Returns:
- The return value to compare each result against.
-
getComparator
Gets the comparison performed on the list.- Returns:
- Returns the comparator.
-
fromNode
Creates a new instance from aNode.- Parameters:
node- Node tom create the PathMatcher from.- Returns:
- Returns the created PathMatcher.
- Throws:
software.amazon.smithy.model.node.ExpectationNotMetException- if the given Node is invalid.
-
toNode
public software.amazon.smithy.model.node.Node toNode()- Specified by:
toNodein interfacesoftware.amazon.smithy.model.node.ToNode
-
equals
-
hashCode
public int hashCode()
-