public NetworkInsightsAnalysis withExplanations(java.util.Collection<Explanation> explanations) {
        setExplanations(explanations);
        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>

@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