Class ListPipelinesResponse
java.lang.Object
org.sourcelab.buildkite.api.client.response.ListPipelinesResponse
- All Implemented Interfaces:
PageableResponse<ListPipelinesResponse>
public class ListPipelinesResponse
extends Object
implements PageableResponse<ListPipelinesResponse>
Represents the results from the v2/organizations/{org.slug}/pipelines API end point.
-
Constructor Summary
ConstructorsConstructorDescriptionListPipelinesResponse(PagingLinks pagingLinks, List<Pipeline> pipelines, ListPipelinesRequest originalRequest) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintcount()The total number of pipelines found.Get the original underlyingRequestused to generate this response.Paging Link references for the results.getPipelineById(String pipelineId) Given an pipeline Id, return the pipeline associated with the Id.getPipelineByName(String pipelineName) Given an pipeline name, return the pipeline associated with the Name.getPipelineBySlug(String slug) Given an organization slug, return the organization associated with the slug.Get all pipeline Ids.Get all pipeline names.All of the Pipelines returned from the API response.Get all organization slugs.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sourcelab.buildkite.api.client.response.PageableResponse
hasFirstPage, hasLastPage, hasNextPage, hasPreviousPage
-
Constructor Details
-
ListPipelinesResponse
public ListPipelinesResponse(PagingLinks pagingLinks, List<Pipeline> pipelines, ListPipelinesRequest originalRequest) Constructor.- Parameters:
pagingLinks- Paging links for results.pipelines- All pipelines returned in the response.originalRequest- The original request used to retrieve these results.
-
-
Method Details
-
getPagingLinks
Paging Link references for the results.- Specified by:
getPagingLinksin interfacePageableResponse<ListPipelinesResponse>- Returns:
- Paging Link references for the results.
-
getOriginalRequest
Description copied from interface:PageableResponseGet the original underlyingRequestused to generate this response.- Specified by:
getOriginalRequestin interfacePageableResponse<ListPipelinesResponse>- Returns:
- Original underlying Request.
-
getPipelines
All of the Pipelines returned from the API response.- Returns:
- All of the Pipelines returned from the API response.
-
count
public int count()The total number of pipelines found.- Returns:
- The total number of pipelines found.
-
getPipelineIds
Get all pipeline Ids.- Returns:
- All pipeline ids.
-
getPipelineNames
Get all pipeline names.- Returns:
- All pipeline names.
-
getPipelineSlugIds
Get all organization slugs.- Returns:
- All organization slugs.
-
getPipelineById
Given an pipeline Id, return the pipeline associated with the Id.- Parameters:
pipelineId- Id of the pipeline to retrieve.- Returns:
- pipeline by pipeline id.
-
getPipelineByName
Given an pipeline name, return the pipeline associated with the Name.- Parameters:
pipelineName- Name of the pipeline to retrieve.- Returns:
- pipeline by pipeline name.
-
getPipelineBySlug
Given an organization slug, return the organization associated with the slug.- Parameters:
slug- slug of the organization to retrieve.- Returns:
- Organization by organization slug.
-
toString
-