public ErrorRootCauseService withEntityPath(ErrorRootCauseEntity... entityPath) {
        if (this.entityPath == null) {
            setEntityPath(new java.util.ArrayList<ErrorRootCauseEntity>(entityPath.length));
        }
        for (ErrorRootCauseEntity ele : entityPath) {
            this.entityPath.add(ele);
        }
        return this;
    }
<p>
The path of root cause entities found on the service.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEntityPath(java.util.Collection)} or {@link #withEntityPath(java.util.Collection)} if you want to
override the existing values.
</p>

@param entityPath
       The path of root cause entities found on the service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-xray/src/main/java/com/amazonaws/services/xray/model/ErrorRootCauseService.java