Package software.amazon.smithy.waiters
Enum Class PathComparator
- All Implemented Interfaces:
Serializable
,Comparable<PathComparator>
,Constable
,ToNode
Defines a comparison to perform in a PathMatcher.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMatches if all values in the list matches the expected string.Matches if any value in the list matches the expected string.Matches if the return value is a boolean that is equal to the string literal 'true' or 'false'.Matches if the return value is a string that is equal to the expected string. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathComparator
Creates aPathComparator
from aNode
.toNode()
Converts a value to aNode
.toString()
static PathComparator
Returns the enum constant of this class with the specified name.static PathComparator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_STRING_EQUALS
Matches if all values in the list matches the expected string. -
ANY_STRING_EQUALS
Matches if any value in the list matches the expected string. -
STRING_EQUALS
Matches if the return value is a string that is equal to the expected string. -
BOOLEAN_EQUALS
Matches if the return value is a boolean that is equal to the string literal 'true' or 'false'.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromNode
Creates aPathComparator
from aNode
.- Parameters:
node
- Node to create thePathComparator
from.- Returns:
- Returns the created
PathComparator
. - Throws:
ExpectationNotMetException
- if the givennode
is invalid.
-
toString
- Overrides:
toString
in classEnum<PathComparator>
-
toNode
Description copied from interface:ToNode
Converts a value to aNode
.
-