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