public NetworkInsightsAnalysis withExplanations(Explanation... explanations) {
        if (this.explanations == null) {
            setExplanations(new com.amazonaws.internal.SdkInternalList<Explanation>(explanations.length));
        }
        for (Explanation ele : explanations) {
            this.explanations.add(ele);
        }
        return this;
    }
<p>
The explanations. For more information, see <a
href="https://docs.aws.amazon.com/vpc/latest/reachability/explanation-codes.html">Reachability Analyzer
explanation codes</a>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setExplanations(java.util.Collection)} or {@link #withExplanations(java.util.Collection)} if you want to
override the existing values.
</p>

@param explanations
       The explanations. For more information, see <a
       href="https://docs.aws.amazon.com/vpc/latest/reachability/explanation-codes.html">Reachability Analyzer
       explanation codes</a>.
@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