Class ImOpenParams
java.lang.Object
com.hubspot.slack.client.methods.params.im.ImOpenParams
- All Implemented Interfaces:
HasUser,ImOpenParamsIF
@Generated(from="ImOpenParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImOpenParams
extends Object
implements ImOpenParamsIF
Immutable implementation of
ImOpenParamsIF.
Use the builder to create immutable instances:
ImOpenParams.builder().
Use the static factory method to create immutable instances:
ImOpenParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImOpenParams.Builderbuilder()Creates a builder forImOpenParams.static ImOpenParamscopyOf(ImOpenParamsIF instance) Creates an immutable copy of aImOpenParamsIFvalue.booleanThis instance is equal to all instances ofImOpenParamsthat have equal attribute values.booleanbooleaninthashCode()Computes a hash code from attributes:userId,includeLocale,returnIm.static ImOpenParamsConstruct a new immutableImOpenParamsinstance.toString()Prints the immutable valueImOpenParamswith attribute values.final ImOpenParamswithIncludeLocale(boolean value) Copy the current immutable object by setting a value for theincludeLocaleattribute.final ImOpenParamswithReturnIm(boolean value) Copy the current immutable object by setting a value for thereturnImattribute.final ImOpenParamswithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
getUserId
- Specified by:
getUserIdin interfaceHasUser- Specified by:
getUserIdin interfaceImOpenParamsIF- Returns:
- The value of the
userIdattribute
-
getIncludeLocale
public boolean getIncludeLocale()- Specified by:
getIncludeLocalein interfaceImOpenParamsIF- Returns:
- The value of the
includeLocaleattribute
-
getReturnIm
public boolean getReturnIm()- Specified by:
getReturnImin interfaceImOpenParamsIF- Returns:
- The value of the
returnImattribute
-
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
-
withReturnIm
Copy the current immutable object by setting a value for thereturnImattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for returnIm- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImOpenParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userId,includeLocale,returnIm. -
toString
Prints the immutable valueImOpenParamswith attribute values. -
of
Construct a new immutableImOpenParamsinstance.- Parameters:
userId- The value for theuserIdattribute- Returns:
- An immutable ImOpenParams instance
-
copyOf
Creates an immutable copy of aImOpenParamsIFvalue. 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 ImOpenParams instance
-
builder
Creates a builder forImOpenParams.ImOpenParams.builder() .setUserId(String) // requireduserId.setIncludeLocale(boolean) // optionalincludeLocale.setReturnIm(boolean) // optionalreturnIm.build();- Returns:
- A new ImOpenParams builder
-