@Override
    public Node toNode() {
        ObjectNode.Builder builder = Node.objectNodeBuilder()
                .withOptionalMember(DOCUMENTATION, getDocumentation().map(Node::from))
                .withMember(ACCEPTORS, getAcceptors().stream().map(Acceptor::toNode).collect(ArrayNode.collect()));

        // Don't serialize default values for minDelay and maxDelay.
        if (minDelay != DEFAULT_MIN_DELAY) {
            builder.withMember(MIN_DELAY, minDelay);
        }
        if (maxDelay != DEFAULT_MAX_DELAY) {
            builder.withMember(MAX_DELAY, maxDelay);
        }

        if (isDeprecated()) {
            builder.withMember(DEPRECATED, true);
        }

        if (!tags.isEmpty()) {
            builder.withMember(TAGS, Node.fromStrings(tags));
        }

        return builder.build();
    }
Checks if the waiter is deprecated.

@return Returns true if the waiter is deprecated.
smithy-waiters/src/main/java/software/amazon/smithy/waiters/Waiter.java