Class UsersInfoResponse
java.lang.Object
com.hubspot.slack.client.models.response.users.UsersInfoResponse
- All Implemented Interfaces:
SlackResponse,UsersInfoResponseIF
@Generated(from="UsersInfoResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsersInfoResponse
extends Object
implements UsersInfoResponseIF
Immutable implementation of
UsersInfoResponseIF.
Use the builder to create immutable instances:
UsersInfoResponse.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UsersInfoResponse.Builderbuilder()Creates a builder forUsersInfoResponse.static UsersInfoResponsecopyOf(UsersInfoResponseIF instance) Creates an immutable copy of aUsersInfoResponseIFvalue.booleanThis instance is equal to all instances ofUsersInfoResponsethat have equal attribute values.getUser()inthashCode()Computes a hash code from attributes:ok,responseMetadata,user.booleanisOk()toString()Prints the immutable valueUsersInfoResponsewith attribute values.final UsersInfoResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final UsersInfoResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final UsersInfoResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.final UsersInfoResponseCopy the current immutable object by setting a value for theuserattribute.
-
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
-
getUser
- Specified by:
getUserin interfaceUsersInfoResponseIF- Returns:
- The value of the
userattribute
-
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
-
withUser
Copy the current immutable object by setting a value for theuserattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofUsersInfoResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,user. -
toString
Prints the immutable valueUsersInfoResponsewith attribute values. -
copyOf
Creates an immutable copy of aUsersInfoResponseIFvalue. 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 UsersInfoResponse instance
-
builder
Creates a builder forUsersInfoResponse.UsersInfoResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setUser(com.hubspot.slack.client.models.users.SlackUser) // requireduser.build();- Returns:
- A new UsersInfoResponse builder
-