Class UsersListResponse
java.lang.Object
com.hubspot.slack.client.models.response.users.UsersListResponse
- All Implemented Interfaces:
SlackResponse,UsersListResponseIF
@Generated(from="UsersListResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsersListResponse
extends Object
implements UsersListResponseIF
Immutable implementation of
UsersListResponseIF.
Use the builder to create immutable instances:
UsersListResponse.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UsersListResponse.Builderbuilder()Creates a builder forUsersListResponse.static UsersListResponsecopyOf(UsersListResponseIF instance) Creates an immutable copy of aUsersListResponseIFvalue.booleanThis instance is equal to all instances ofUsersListResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,members.booleanisOk()toString()Prints the immutable valueUsersListResponsewith attribute values.final UsersListResponsewithMembers(SlackUser... elements) Copy the current immutable object with elements that replace the content ofmembers.final UsersListResponsewithMembers(Iterable<? extends SlackUser> elements) Copy the current immutable object with elements that replace the content ofmembers.final UsersListResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final UsersListResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final UsersListResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getMembers
- Specified by:
getMembersin interfaceUsersListResponseIF- Returns:
- The value of the
membersattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
Copy the current immutable object by setting an optional value for theresponseMetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withMembers
Copy the current immutable object with elements that replace the content ofmembers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMembers
Copy the current immutable object with elements that replace the content ofmembers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of members elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUsersListResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,members. -
toString
Prints the immutable valueUsersListResponsewith attribute values. -
copyOf
Creates an immutable copy of aUsersListResponseIFvalue. 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 UsersListResponse instance
-
builder
Creates a builder forUsersListResponse.UsersListResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.addMembers|addAllMembers(com.hubspot.slack.client.models.users.SlackUser) //memberselements .build();- Returns:
- A new UsersListResponse builder
-