Package software.amazon.smithy.waiters
Class Acceptor
java.lang.Object
software.amazon.smithy.waiters.Acceptor
- All Implemented Interfaces:
software.amazon.smithy.model.node.ToNode
Represents an acceptor in a waiter's state machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AcceptorfromNode(software.amazon.smithy.model.node.Node node) Creates an Acceptor from aNode.Matcher<?>Gets the matcher used to test if the acceptor.getState()Gets the state to transition to if matched.inthashCode()software.amazon.smithy.model.node.NodetoNode()
-
Constructor Details
-
Acceptor
- Parameters:
state- State the acceptor transitions to when matched.matcher- The matcher to match against.
-
-
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.
-
fromNode
Creates an Acceptor from aNode.- Parameters:
node- Node to create the Acceptor from.- Returns:
- Returns the created Acceptor.
- 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()
-