@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractChatDeleteParams"}) @Immutable public final class ChatDeleteParams extends AbstractChatDeleteParams
AbstractChatDeleteParams.
Use the builder to create immutable instances:
ChatDeleteParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatDeleteParams.Builder
Builds instances of type
ChatDeleteParams. |
| Modifier and Type | Method and Description |
|---|---|
static ChatDeleteParams.Builder |
builder()
Creates a builder for
ChatDeleteParams. |
static ChatDeleteParams |
copyOf(AbstractChatDeleteParams instance)
Creates an immutable copy of a
AbstractChatDeleteParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChatDeleteParams that have equal attribute values. |
boolean |
getAsUser() |
String |
getChannelId() |
String |
getMessageToDeleteTs() |
int |
hashCode()
Computes a hash code from attributes:
channelId, messageToDeleteTs, asUser. |
String |
toString()
Prints the immutable value
ChatDeleteParams with attribute values. |
ChatDeleteParams |
withAsUser(boolean asUser)
Copy the current immutable object by setting a value for the
asUser attribute. |
ChatDeleteParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ChatDeleteParams |
withMessageToDeleteTs(String messageToDeleteTs)
Copy the current immutable object by setting a value for the
messageToDeleteTs attribute. |
public String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractChatDeleteParamschannelId attributepublic String getMessageToDeleteTs()
getMessageToDeleteTs in class AbstractChatDeleteParamsmessageToDeleteTs attributepublic boolean getAsUser()
getAsUser in class AbstractChatDeleteParamsasUser attributepublic final ChatDeleteParams withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final ChatDeleteParams withMessageToDeleteTs(String messageToDeleteTs)
messageToDeleteTs attribute.
An equals check used to prevent copying of the same value by returning this.messageToDeleteTs - A new value for messageToDeleteTsthis objectpublic final ChatDeleteParams withAsUser(boolean asUser)
asUser attribute.
A value equality check is used to prevent copying of the same value by returning this.asUser - A new value for asUserthis objectpublic boolean equals(@Nullable Object another)
ChatDeleteParams that have equal attribute values.public int hashCode()
channelId, messageToDeleteTs, asUser.public String toString()
ChatDeleteParams with attribute values.public static ChatDeleteParams copyOf(AbstractChatDeleteParams instance)
AbstractChatDeleteParams 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 ChatDeleteParams.Builder builder()
ChatDeleteParams.Copyright © 2019. All rights reserved.