public RouteAnalysisPath withPath(PathComponent... path) {
        if (this.path == null) {
            setPath(new java.util.ArrayList<PathComponent>(path.length));
        }
        for (PathComponent ele : path) {
            this.path.add(ele);
        }
        return this;
    }
<p>
The route analysis path.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPath(java.util.Collection)} or {@link #withPath(java.util.Collection)} if you want to override the
existing values.
</p>

@param path
       The route analysis path.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/RouteAnalysisPath.java