@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationOpenParamsIF"}) @Immutable public final class ConversationOpenParams extends Object implements ConversationOpenParamsIF
ConversationOpenParamsIF.
Use the builder to create immutable instances:
ConversationOpenParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationOpenParams.Builder
Builds instances of type
ConversationOpenParams. |
COMMA_JOINER| Modifier and Type | Method and Description |
|---|---|
static ConversationOpenParams.Builder |
builder()
Creates a builder for
ConversationOpenParams. |
static ConversationOpenParams |
copyOf(ConversationOpenParamsIF instance)
Creates an immutable copy of a
ConversationOpenParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationOpenParams that have equal attribute values. |
Optional<String> |
getChannelId() |
boolean |
getReturnIm() |
List<String> |
getUsers() |
int |
hashCode()
Computes a hash code from attributes:
channelId, users, returnIm. |
String |
toString()
Prints the immutable value
ConversationOpenParams with attribute values. |
ConversationOpenParams |
withChannelId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
channelId attribute. |
ConversationOpenParams |
withChannelId(String value)
Copy the current immutable object by setting a present value for the optional
channelId attribute. |
ConversationOpenParams |
withReturnIm(boolean returnIm)
Copy the current immutable object by setting a value for the
returnIm attribute. |
ConversationOpenParams |
withUsers(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
users. |
ConversationOpenParams |
withUsers(String... elements)
Copy the current immutable object with elements that replace the content of
users. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUsersStringpublic Optional<String> getChannelId()
getChannelId in interface ConversationOpenParamsIFchannelId attributepublic List<String> getUsers()
getUsers in interface ConversationOpenParamsIFusers attributepublic boolean getReturnIm()
getReturnIm in interface ConversationOpenParamsIFreturnIm attributepublic final ConversationOpenParams withChannelId(@Nullable String value)
channelId attribute.value - The value for channelId, null is accepted as java.util.Optional.empty()this objectpublic final ConversationOpenParams withChannelId(Optional<String> optional)
channelId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for channelIdthis objectpublic final ConversationOpenParams withUsers(String... elements)
users.elements - The elements to setthis objectpublic final ConversationOpenParams withUsers(Iterable<String> elements)
users.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of users elements to setthis objectpublic final ConversationOpenParams 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)
ConversationOpenParams that have equal attribute values.public int hashCode()
channelId, users, returnIm.public String toString()
ConversationOpenParams with attribute values.public static ConversationOpenParams copyOf(ConversationOpenParamsIF instance)
ConversationOpenParamsIF 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 ConversationOpenParams.Builder builder()
ConversationOpenParams.Copyright © 2019. All rights reserved.