public InvalidNodeException withInvalidNodes(Node... invalidNodes) {
        if (this.invalidNodes == null) {
            setInvalidNodes(new java.util.ArrayList<Node>(invalidNodes.length));
        }
        for (Node ele : invalidNodes) {
            this.invalidNodes.add(ele);
        }
        return this;
    }
<p>
The specified node type isn't valid.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setInvalidNodes(java.util.Collection)} or {@link #withInvalidNodes(java.util.Collection)} if you want to
override the existing values.
</p>

@param invalidNodes
       The specified node type isn't valid.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotfleetwise/src/main/java/com/amazonaws/services/iotfleetwise/model/InvalidNodeException.java