@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ImOpenParamsIF"}) @Immutable public final class ImOpenParams extends Object implements ImOpenParamsIF
ImOpenParamsIF.
Use the builder to create immutable instances:
ImOpenParams.builder().
Use the static factory method to create immutable instances:
ImOpenParams.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImOpenParams.Builder
Builds instances of type
ImOpenParams. |
| Modifier and Type | Method and Description |
|---|---|
static ImOpenParams.Builder |
builder()
Creates a builder for
ImOpenParams. |
static ImOpenParams |
copyOf(ImOpenParamsIF instance)
Creates an immutable copy of a
ImOpenParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImOpenParams that have equal attribute values. |
boolean |
getIncludeLocale() |
boolean |
getReturnIm() |
String |
getUserId() |
int |
hashCode()
Computes a hash code from attributes:
userId, includeLocale, returnIm. |
static ImOpenParams |
of(String userId)
Construct a new immutable
ImOpenParams instance. |
String |
toString()
Prints the immutable value
ImOpenParams with attribute values. |
ImOpenParams |
withIncludeLocale(boolean includeLocale)
Copy the current immutable object by setting a value for the
includeLocale attribute. |
ImOpenParams |
withReturnIm(boolean returnIm)
Copy the current immutable object by setting a value for the
returnIm attribute. |
ImOpenParams |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
public String getUserId()
getUserId in interface HasUsergetUserId in interface ImOpenParamsIFuserId attributepublic boolean getIncludeLocale()
getIncludeLocale in interface ImOpenParamsIFincludeLocale attributepublic boolean getReturnIm()
getReturnIm in interface ImOpenParamsIFreturnIm attributepublic final ImOpenParams withUserId(String userId)
userId attribute.
An equals check used to prevent copying of the same value by returning this.userId - A new value for userIdthis objectpublic final ImOpenParams withIncludeLocale(boolean includeLocale)
includeLocale attribute.
A value equality check is used to prevent copying of the same value by returning this.includeLocale - A new value for includeLocalethis objectpublic final ImOpenParams withReturnIm(boolean returnIm)
returnIm attribute.
A value equality check is used to prevent copying of the same value by returning this.returnIm - A new value for returnImthis objectpublic boolean equals(@Nullable Object another)
ImOpenParams that have equal attribute values.public int hashCode()
userId, includeLocale, returnIm.public String toString()
ImOpenParams with attribute values.public static ImOpenParams of(String userId)
ImOpenParams instance.userId - The value for the userId attributepublic static ImOpenParams copyOf(ImOpenParamsIF instance)
ImOpenParamsIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImOpenParams.Builder builder()
ImOpenParams.Copyright © 2019. All rights reserved.