Class Reply
java.lang.Object
com.hubspot.slack.client.models.events.util.Reply
- All Implemented Interfaces:
ReplyIF
@Generated(from="ReplyIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Reply
extends Object
implements ReplyIF
Immutable implementation of
ReplyIF.
Use the builder to create immutable instances:
Reply.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Reply.Builderbuilder()Creates a builder forReply.static ReplyCreates an immutable copy of aReplyIFvalue.booleanThis instance is equal to all instances ofReplythat have equal attribute values.getTs()getUser()inthashCode()Computes a hash code from attributes:user,ts.toString()Prints the immutable valueReplywith attribute values.final ReplyCopy the current immutable object by setting a value for thetsattribute.final ReplyCopy the current immutable object by setting a value for theuserattribute.
-
Method Details
-
getUser
-
getTs
-
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 ofReplythat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:user,ts. -
toString
Prints the immutable valueReplywith attribute values. -
copyOf
Creates an immutable copy of aReplyIFvalue. 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 Reply instance
-
builder
Creates a builder forReply.Reply.builder() .setUser(String) // requireduser.setTs(String) // requiredts.build();- Returns:
- A new Reply builder
-