public NetworkInsightsAnalysis withAlternatePathHints(AlternatePathHint... alternatePathHints) {
        if (this.alternatePathHints == null) {
            setAlternatePathHints(new com.amazonaws.internal.SdkInternalList<AlternatePathHint>(alternatePathHints.length));
        }
        for (AlternatePathHint ele : alternatePathHints) {
            this.alternatePathHints.add(ele);
        }
        return this;
    }
<p>
Potential intermediate components.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAlternatePathHints(java.util.Collection)} or {@link #withAlternatePathHints(java.util.Collection)} if
you want to override the existing values.
</p>

@param alternatePathHints
       Potential intermediate components.
@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