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