public UpdateAppRequest withServerGroups(ServerGroup... serverGroups) {
        if (this.serverGroups == null) {
            setServerGroups(new java.util.ArrayList<ServerGroup>(serverGroups.length));
        }
        for (ServerGroup ele : serverGroups) {
            this.serverGroups.add(ele);
        }
        return this;
    }
public UpdateAppRequest withServerGroups ( ServerGroup ... serverGroups ) { if ( this . serverGroups == null ) { setServerGroups ( new java . util . ArrayList < ServerGroup > ( serverGroups . length ) ) ; } for ( ServerGroup ele : serverGroups ) { this . serverGroups . add ( ele ) ; } return this ; }
<p>
List of server groups in the application to update.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setServerGroups(java.util.Collection)} or {@link #withServerGroups(java.util.Collection)} if you want to
override the existing values.
</p>

@param serverGroups
List of server groups in the application to update.
@return Returns a reference to this object so that method calls can be chained together.