public ListWorkspaceServiceAccountsResult withServiceAccounts(ServiceAccountSummary... serviceAccounts) {
        if (this.serviceAccounts == null) {
            setServiceAccounts(new java.util.ArrayList<ServiceAccountSummary>(serviceAccounts.length));
        }
        for (ServiceAccountSummary ele : serviceAccounts) {
            this.serviceAccounts.add(ele);
        }
        return this;
    }
<p>
An array of structures containing information about the service accounts.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setServiceAccounts(java.util.Collection)} or {@link #withServiceAccounts(java.util.Collection)} if you
want to override the existing values.
</p>

@param serviceAccounts
       An array of structures containing information about the service accounts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-managedgrafana/src/main/java/com/amazonaws/services/managedgrafana/model/ListWorkspaceServiceAccountsResult.java