Class MessageEdited
java.lang.Object
com.hubspot.slack.client.models.events.MessageEdited
- All Implemented Interfaces:
MessageEditedIF
@Generated(from="MessageEditedIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class MessageEdited
extends Object
implements MessageEditedIF
Immutable implementation of
MessageEditedIF.
Use the builder to create immutable instances:
MessageEdited.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageEdited.Builderbuilder()Creates a builder forMessageEdited.static MessageEditedcopyOf(MessageEditedIF instance) Creates an immutable copy of aMessageEditedIFvalue.booleanThis instance is equal to all instances ofMessageEditedthat have equal attribute values.getTs()getUser()inthashCode()Computes a hash code from attributes:user,ts.toString()Prints the immutable valueMessageEditedwith attribute values.final MessageEditedCopy the current immutable object by setting a value for thetsattribute.final MessageEditedCopy the current immutable object by setting a value for theuserattribute.
-
Method Details
-
getUser
- Specified by:
getUserin interfaceMessageEditedIF- Returns:
- The value of the
userattribute
-
getTs
- Specified by:
getTsin interfaceMessageEditedIF- Returns:
- The value of the
tsattribute
-
withUser
Copy the current immutable object by setting a value for theuserattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user- Returns:
- A modified copy or the
thisobject
-
withTs
Copy the current immutable object by setting a value for thetsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ts- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofMessageEditedthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:user,ts. -
toString
Prints the immutable valueMessageEditedwith attribute values. -
copyOf
Creates an immutable copy of aMessageEditedIFvalue. 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 MessageEdited instance
-
builder
Creates a builder forMessageEdited.MessageEdited.builder() .setUser(String) // requireduser.setTs(String) // requiredts.build();- Returns:
- A new MessageEdited builder
-