Class PagingLinksBuilder
java.lang.Object
org.sourcelab.buildkite.api.client.response.PagingLinksBuilder
For building/creating new
PagingLinks instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create newPagingLinksinstance.fromHeaderLine(String headerLine) Load builder parsing from the Header line.withFirstUrl(String firstUrl) Set the first Url.withLastUrl(String lastUrl) Set the last Url.withNextUrl(String nextUrl) Set the next Url.withPrevUrl(String prevUrl) Set the previous Url.
-
Constructor Details
-
PagingLinksBuilder
public PagingLinksBuilder()Constructor.
-
-
Method Details
-
withPrevUrl
Set the previous Url.- Parameters:
prevUrl- The previous url.- Returns:
- LinkHeaderBuilder for method chaining,
-
withNextUrl
Set the next Url.- Parameters:
nextUrl- The next url.- Returns:
- LinkHeaderBuilder for method chaining,
-
withFirstUrl
Set the first Url.- Parameters:
firstUrl- The first url.- Returns:
- LinkHeaderBuilder for method chaining,
-
withLastUrl
Set the last Url.- Parameters:
lastUrl- The last url.- Returns:
- LinkHeaderBuilder for method chaining,
-
fromHeaderLine
Load builder parsing from the Header line.- Parameters:
headerLine- The header line to parse.- Returns:
- LinkHeaderBuilder for method chaining.
-
build
Create newPagingLinksinstance.- Returns:
- Create new
PagingLinksinstance.
-