public ObjectNode getObjectMember(String memberName, Consumer<ObjectNode> consumer) {
        getObjectMember(memberName).ifPresent(consumer);
        return this;
    }
Gets the member with the given name, and if present, expects it to be an object.

@param memberName Name of the member to get.
@param consumer Consumer that accepts the member if found.
@return Returns the node.
@throws ExpectationNotMetException if the member is not an object.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java