Class UsersListParams
java.lang.Object
com.hubspot.slack.client.methods.params.users.UsersListParams
- All Implemented Interfaces:
UsersListParamsIF
@Generated(from="UsersListParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsersListParams
extends Object
implements UsersListParamsIF
Immutable implementation of
UsersListParamsIF.
Use the builder to create immutable instances:
UsersListParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UsersListParams.Builderbuilder()Creates a builder forUsersListParams.static UsersListParamscopyOf(UsersListParamsIF instance) Creates an immutable copy of aUsersListParamsIFvalue.booleanThis instance is equal to all instances ofUsersListParamsthat have equal attribute values.getLimit()inthashCode()Computes a hash code from attributes:cursor,limit.toString()Prints the immutable valueUsersListParamswith attribute values.final UsersListParamswithCursor(String value) Copy the current immutable object by setting a present value for the optionalcursorattribute.final UsersListParamswithCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thecursorattribute.final UsersListParamsCopy the current immutable object by setting a present value for the optionallimitattribute.final UsersListParamsCopy the current immutable object by setting an optional value for thelimitattribute.
-
Method Details
-
getCursor
- Specified by:
getCursorin interfaceUsersListParamsIF- Returns:
- The value of the
cursorattribute
-
getLimit
- Specified by:
getLimitin interfaceUsersListParamsIF- Returns:
- The value of the
limitattribute
-
withCursor
Copy the current immutable object by setting a present value for the optionalcursorattribute.- Parameters:
value- The value for cursor,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCursor
Copy the current immutable object by setting an optional value for thecursorattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for cursor- Returns:
- A modified copy or
thisif not changed
-
withLimit
Copy the current immutable object by setting a present value for the optionallimitattribute.- Parameters:
value- The value for limit,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLimit
Copy the current immutable object by setting an optional value for thelimitattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for limit- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUsersListParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:cursor,limit. -
toString
Prints the immutable valueUsersListParamswith attribute values. -
copyOf
Creates an immutable copy of aUsersListParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable UsersListParams instance
-
builder
Creates a builder forUsersListParams.UsersListParams.builder() .setCursor(Optional<String>) // optionalcursor.setLimit(Optional<Integer>) // optionallimit.build();- Returns:
- A new UsersListParams builder
-