public static AcceptorState fromNode(Node node) {
        StringNode value = node.expectStringNode();
        String constValue = value.expectOneOf("success", "failure", "retry").toUpperCase(Locale.ENGLISH);
        return AcceptorState.valueOf(constValue);
    }
Create an AcceptorState from a Node.

@param node Node to create the AcceptorState from.
@return Returns the created AcceptorState.
@throws ExpectationNotMetException when given an invalid Node.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/AcceptorState.java