public void setExplanations(java.util.Collection<Explanation> explanations) {
        if (explanations == null) {
            this.explanations = null;
            return;
        }

        this.explanations = new com.amazonaws.internal.SdkInternalList<Explanation>(explanations);
    }
<p>
The explanation codes.
</p>

@param explanations
       The explanation codes.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/PathComponent.java