public TraceSummary withServiceIds(ServiceId... serviceIds) {
        if (this.serviceIds == null) {
            setServiceIds(new java.util.ArrayList<ServiceId>(serviceIds.length));
        }
        for (ServiceId ele : serviceIds) {
            this.serviceIds.add(ele);
        }
        return this;
    }
public TraceSummary withServiceIds ( ServiceId ... serviceIds ) { if ( this . serviceIds == null ) { setServiceIds ( new java . util . ArrayList < ServiceId > ( serviceIds . length ) ) ; } for ( ServiceId ele : serviceIds ) { this . serviceIds . add ( ele ) ; } return this ; }
<p>
Service IDs from the trace's segment documents.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setServiceIds(java.util.Collection)} or {@link #withServiceIds(java.util.Collection)} if you want to
override the existing values.
</p>

@param serviceIds
Service IDs from the trace's segment documents.
@return Returns a reference to this object so that method calls can be chained together.