Class ChatDeleteParams
java.lang.Object
com.hubspot.slack.client.methods.params.chat.AbstractChatDeleteParams
com.hubspot.slack.client.methods.params.chat.ChatDeleteParams
- All Implemented Interfaces:
HasChannel
@Generated(from="AbstractChatDeleteParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatDeleteParams
extends AbstractChatDeleteParams
Immutable implementation of
AbstractChatDeleteParams.
Use the builder to create immutable instances:
ChatDeleteParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatDeleteParams.Builderbuilder()Creates a builder forChatDeleteParams.static ChatDeleteParamscopyOf(AbstractChatDeleteParams instance) Creates an immutable copy of aAbstractChatDeleteParamsvalue.booleanThis instance is equal to all instances ofChatDeleteParamsthat have equal attribute values.booleaninthashCode()Computes a hash code from attributes:channelId,messageToDeleteTs,asUser.toString()Prints the immutable valueChatDeleteParamswith attribute values.final ChatDeleteParamswithAsUser(boolean value) Copy the current immutable object by setting a value for theasUserattribute.final ChatDeleteParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ChatDeleteParamswithMessageToDeleteTs(String value) Copy the current immutable object by setting a value for themessageToDeleteTsattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Specified by:
getChannelIdin classAbstractChatDeleteParams- Returns:
- The value of the
channelIdattribute
-
getMessageToDeleteTs
- Specified by:
getMessageToDeleteTsin classAbstractChatDeleteParams- Returns:
- The value of the
messageToDeleteTsattribute
-
getAsUser
public boolean getAsUser()- Overrides:
getAsUserin classAbstractChatDeleteParams- Returns:
- The value of the
asUserattribute
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withMessageToDeleteTs
Copy the current immutable object by setting a value for themessageToDeleteTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageToDeleteTs- Returns:
- A modified copy or the
thisobject
-
withAsUser
Copy the current immutable object by setting a value for theasUserattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for asUser- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChatDeleteParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,messageToDeleteTs,asUser. -
toString
Prints the immutable valueChatDeleteParamswith attribute values. -
copyOf
Creates an immutable copy of aAbstractChatDeleteParamsvalue. 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 ChatDeleteParams instance
-
builder
Creates a builder forChatDeleteParams.ChatDeleteParams.builder() .setChannelId(String) // requiredchannelId.setMessageToDeleteTs(String) // requiredmessageToDeleteTs.setAsUser(boolean) // optionalasUser.build();- Returns:
- A new ChatDeleteParams builder
-