Class ResourceAliasesPager
- java.lang.Object
-
- com.ibm.cloud.platform_services.resource_controller.v2.model.ResourceAliasesPager
-
public class ResourceAliasesPager extends java.lang.ObjectResourceAliasesPager can be used to simplify the use of the "listResourceAliases" method.
-
-
Constructor Summary
Constructors Constructor Description ResourceAliasesPager(ResourceController client, ListResourceAliasesOptions options)Constructs a new ResourceAliasesPager 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<ResourceAlias>getAll()Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.java.util.List<ResourceAlias>getNext()Returns the next page of results.booleanhasNext()Returns true if there are more results to be retrieved.
-
-
-
Constructor Detail
-
ResourceAliasesPager
public ResourceAliasesPager(ResourceController client, ListResourceAliasesOptions options)
Constructs a new ResourceAliasesPager instance with the specified client and options model instance.- Parameters:
client- the ResourceController instance to be used to invoke the "listResourceAliases" methodoptions- the ListResourceAliasesOptions instance to be used to invoke the "listResourceAliases" method
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns true if there are more results to be retrieved.- Returns:
- boolean
-
getNext
public java.util.List<ResourceAlias> getNext()
Returns the next page of results.- Returns:
- a List<ResourceAlias> that contains the next page of results
-
getAll
public java.util.List<ResourceAlias> getAll()
Returns all results by invoking getNext() repeatedly until all pages of results have been retrieved.- Returns:
- a List<ResourceAlias> containing all results returned by the "listResourceAliases" method
-
-