Class AccountGroupsPager
- java.lang.Object
-
- com.ibm.cloud.platform_services.enterprise_management.v1.model.AccountGroupsPager
-
public class AccountGroupsPager extends java.lang.ObjectAccountGroupsPager can be used to simplify the use of the "listAccountGroups" method.
-
-
Constructor Summary
Constructors Constructor Description AccountGroupsPager(EnterpriseManagement client, ListAccountGroupsOptions options)Constructs a new AccountGroupsPager instance with the specified client and options model instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AccountGroup>getAll()Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.java.util.List<AccountGroup>getNext()Returns the next page of results.booleanhasNext()Returns true if there are more results to be retrieved.
-
-
-
Constructor Detail
-
AccountGroupsPager
public AccountGroupsPager(EnterpriseManagement client, ListAccountGroupsOptions options)
Constructs a new AccountGroupsPager instance with the specified client and options model instance.- Parameters:
client- the EnterpriseManagement instance to be used to invoke the "listAccountGroups" methodoptions- the ListAccountGroupsOptions instance to be used to invoke the "listAccountGroups" method
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are more results to be retrieved.- Returns:
- boolean
-
getNext
public java.util.List<AccountGroup> getNext()
Returns the next page of results.- Returns:
- a List<AccountGroup> that contains the next page of results
-
getAll
public java.util.List<AccountGroup> getAll()
Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.- Returns:
- a List<AccountGroup> containing all results returned by the "listAccountGroups" method
-
-