public ListPortalsResult withPortals(PortalSummary... portals) {
        if (this.portals == null) {
            setPortals(new java.util.ArrayList<PortalSummary>(portals.length));
        }
        for (PortalSummary ele : portals) {
            this.portals.add(ele);
        }
        return this;
    }
<p>
The portals in the list.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPortals(java.util.Collection)} or {@link #withPortals(java.util.Collection)} if you want to override
the existing values.
</p>

@param portals
       The portals in the list.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workspacesweb/src/main/java/com/amazonaws/services/workspacesweb/model/ListPortalsResult.java