public NetworkInsightsAnalysis withReturnPathComponents(PathComponent... returnPathComponents) {
        if (this.returnPathComponents == null) {
            setReturnPathComponents(new com.amazonaws.internal.SdkInternalList<PathComponent>(returnPathComponents.length));
        }
        for (PathComponent ele : returnPathComponents) {
            this.returnPathComponents.add(ele);
        }
        return this;
    }
<p>
The components in the path from destination to source.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReturnPathComponents(java.util.Collection)} or {@link #withReturnPathComponents(java.util.Collection)}
if you want to override the existing values.
</p>

@param returnPathComponents
       The components in the path from destination to source.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/NetworkInsightsAnalysis.java