public GetCommentsForPullRequestResult withCommentsForPullRequestData(CommentsForPullRequest... commentsForPullRequestData) {
        if (this.commentsForPullRequestData == null) {
            setCommentsForPullRequestData(new java.util.ArrayList<CommentsForPullRequest>(commentsForPullRequestData.length));
        }
        for (CommentsForPullRequest ele : commentsForPullRequestData) {
            this.commentsForPullRequestData.add(ele);
        }
        return this;
    }
<p>
An array of comment objects on the pull request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCommentsForPullRequestData(java.util.Collection)} or
{@link #withCommentsForPullRequestData(java.util.Collection)} if you want to override the existing values.
</p>

@param commentsForPullRequestData
       An array of comment objects on the pull request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/GetCommentsForPullRequestResult.java