Class UsersInfoParams
java.lang.Object
com.hubspot.slack.client.methods.params.users.UsersInfoParams
- All Implemented Interfaces:
HasUser,UsersInfoParamsIF
@Generated(from="UsersInfoParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsersInfoParams
extends Object
implements UsersInfoParamsIF
Immutable implementation of
UsersInfoParamsIF.
Use the builder to create immutable instances:
UsersInfoParams.builder().
Use the static factory method to create immutable instances:
UsersInfoParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UsersInfoParams.Builderbuilder()Creates a builder forUsersInfoParams.static UsersInfoParamscopyOf(UsersInfoParamsIF instance) Creates an immutable copy of aUsersInfoParamsIFvalue.booleanThis instance is equal to all instances ofUsersInfoParamsthat have equal attribute values.booleaninthashCode()Computes a hash code from attributes:userId,includeLocale.static UsersInfoParamsConstruct a new immutableUsersInfoParamsinstance.toString()Prints the immutable valueUsersInfoParamswith attribute values.final UsersInfoParamswithIncludeLocale(boolean value) Copy the current immutable object by setting a value for theincludeLocaleattribute.final UsersInfoParamswithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
getUserId
- Specified by:
getUserIdin interfaceHasUser- Specified by:
getUserIdin interfaceUsersInfoParamsIF- Returns:
- The value of the
userIdattribute
-
getIncludeLocale
public boolean getIncludeLocale()- Specified by:
getIncludeLocalein interfaceUsersInfoParamsIF- Returns:
- The value of the
includeLocaleattribute
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withIncludeLocale
Copy the current immutable object by setting a value for theincludeLocaleattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for includeLocale- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofUsersInfoParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userId,includeLocale. -
toString
Prints the immutable valueUsersInfoParamswith attribute values. -
of
Construct a new immutableUsersInfoParamsinstance.- Parameters:
userId- The value for theuserIdattribute- Returns:
- An immutable UsersInfoParams instance
-
copyOf
Creates an immutable copy of aUsersInfoParamsIFvalue. 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 UsersInfoParams instance
-
builder
Creates a builder forUsersInfoParams.UsersInfoParams.builder() .setUserId(String) // requireduserId.setIncludeLocale(boolean) // optionalincludeLocale.build();- Returns:
- A new UsersInfoParams builder
-