Class Paging.Builder
java.lang.Object
com.hubspot.slack.client.models.response.Paging.Builder
- Enclosing class:
Paging
@Generated(from="PagingIF",
generator="Immutables")
@NotThreadSafe
public static final class Paging.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newPaging.final Paging.BuilderFill a builder with attribute values from the providedPagingIFinstance.final Paging.BuildersetCount(int count) Initializes the value for thecountattribute.final Paging.BuildersetPage(int page) Initializes the value for thepageattribute.final Paging.BuildersetPages(int pages) Initializes the value for thepagesattribute.final Paging.BuildersetTotal(int total) Initializes the value for thetotalattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedPagingIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setCount
Initializes the value for thecountattribute.- Parameters:
count- The value for count- Returns:
thisbuilder for use in a chained invocation
-
setTotal
Initializes the value for thetotalattribute.- Parameters:
total- The value for total- Returns:
thisbuilder for use in a chained invocation
-
setPage
Initializes the value for thepageattribute.- Parameters:
page- The value for page- Returns:
thisbuilder for use in a chained invocation
-
setPages
Initializes the value for thepagesattribute.- Parameters:
pages- The value for pages- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPaging.- Returns:
- An immutable instance of Paging
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-