Class ListBuildsResponse
java.lang.Object
org.sourcelab.buildkite.api.client.response.ListBuildsResponse
- All Implemented Interfaces:
PageableResponse<ListBuildsResponse>
Represents the results from the /v2/build API end point.
-
Constructor Summary
ConstructorsConstructorDescriptionListBuildsResponse(PagingLinks pagingLinks, List<Build> builds, ListBuildsRequest originalRequest) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintcount()The total number of builds found.getBuildById(String buildId) Given a build Id, return the build associated with the Id.Get all build Ids.All of the Builds returned from the API response.Get the original underlyingRequestused to generate this response.Paging Link references for the results.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
-
ListBuildsResponse
public ListBuildsResponse(PagingLinks pagingLinks, List<Build> builds, ListBuildsRequest originalRequest) Constructor.- Parameters:
pagingLinks- Paging links for results.builds- All builds 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<ListBuildsResponse>- Returns:
- Paging Link references for the results.
-
getOriginalRequest
Description copied from interface:PageableResponseGet the original underlyingRequestused to generate this response.- Specified by:
getOriginalRequestin interfacePageableResponse<ListBuildsResponse>- Returns:
- Original underlying Request.
-
getBuilds
All of the Builds returned from the API response.- Returns:
- All of the Builds returned from the API response.
-
count
public int count()The total number of builds found.- Returns:
- The total number of builds found.
-
getBuildIds
Get all build Ids.- Returns:
- All build ids.
-
getBuildById
Given a build Id, return the build associated with the Id.- Parameters:
buildId- Id of the build to retrieve.- Returns:
- Build by buildId.
-
toString
-