Package software.amazon.smithy.waiters
Class Acceptor
java.lang.Object
software.amazon.smithy.waiters.Acceptor
- All Implemented Interfaces:
ToNode
Represents an acceptor in a waiter's state machine.
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptor(AcceptorState state, Matcher<?> matcher) Acceptor(AcceptorState state, Matcher<?> matcher, String message) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AcceptorCreates an Acceptor from aNode.Matcher<?>Gets the matcher used to test if the acceptor.Gets the message JMESPath expression, if present.getState()Gets the state to transition to if matched.inthashCode()toNode()Converts a value to aNode.
-
Constructor Details
-
Acceptor
- Parameters:
state- State the acceptor transitions to when matched.matcher- The matcher to match against.
-
Acceptor
- Parameters:
state- State the acceptor transitions to when matched.matcher- The matcher to match against.message- A JMESPath expression that extracts a message from the output.
-
-
Method Details
-
getState
Gets the state to transition to if matched.- Returns:
- Acceptor state to transition to.
-
getMatcher
Gets the matcher used to test if the acceptor.- Returns:
- Returns the matcher.
-
getMessage
Gets the message JMESPath expression, if present.- Returns:
- Returns the optional message expression.
-
fromNode
Creates an Acceptor from aNode.- Parameters:
node- Node to create the Acceptor from.- Returns:
- Returns the created Acceptor.
- Throws:
ExpectationNotMetException- if the given Node is invalid.
-
toNode
Description copied from interface:ToNodeConverts a value to aNode. -
equals
-
hashCode
public int hashCode()
-