public ListPagesByEngagementResult withPages(Page... pages) {
        if (this.pages == null) {
            setPages(new java.util.ArrayList<Page>(pages.length));
        }
        for (Page ele : pages) {
            this.pages.add(ele);
        }
        return this;
    }
<p>
The list of engagements to contact channels.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPages(java.util.Collection)} or {@link #withPages(java.util.Collection)} if you want to override the
existing values.
</p>

@param pages
       The list of engagements to contact channels.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssmcontacts/src/main/java/com/amazonaws/services/ssmcontacts/model/ListPagesByEngagementResult.java