public AppMonitorConfiguration withFavoritePages(String... favoritePages) {
        if (this.favoritePages == null) {
            setFavoritePages(new java.util.ArrayList<String>(favoritePages.length));
        }
        for (String ele : favoritePages) {
            this.favoritePages.add(ele);
        }
        return this;
    }
<p>
A list of pages in your application that are to be displayed with a "favorite" icon in the CloudWatch RUM
console.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFavoritePages(java.util.Collection)} or {@link #withFavoritePages(java.util.Collection)} if you want
to override the existing values.
</p>

@param favoritePages
       A list of pages in your application that are to be displayed with a "favorite" icon in the CloudWatch RUM
       console.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudwatchrum/src/main/java/com/amazonaws/services/cloudwatchrum/model/AppMonitorConfiguration.java