Package com.hubspot.slack.client.models
Class ReplySkeleton
java.lang.Object
com.hubspot.slack.client.models.ReplySkeleton
- All Implemented Interfaces:
ReplySkeletonIF
@Generated(from="ReplySkeletonIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ReplySkeleton
extends Object
implements ReplySkeletonIF
Immutable implementation of
ReplySkeletonIF.
Use the builder to create immutable instances:
ReplySkeleton.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplySkeleton.Builderbuilder()Creates a builder forReplySkeleton.static ReplySkeletoncopyOf(ReplySkeletonIF instance) Creates an immutable copy of aReplySkeletonIFvalue.booleanThis instance is equal to all instances ofReplySkeletonthat have equal attribute values.inthashCode()Computes a hash code from attributes:userId,replyTs.toString()Prints the immutable valueReplySkeletonwith attribute values.final ReplySkeletonwithReplyTs(String value) Copy the current immutable object by setting a value for thereplyTsattribute.final ReplySkeletonwithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
getUserId
- Specified by:
getUserIdin interfaceReplySkeletonIF- Returns:
- The value of the
userIdattribute
-
getReplyTs
- Specified by:
getReplyTsin interfaceReplySkeletonIF- Returns:
- The value of the
replyTsattribute
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withReplyTs
Copy the current immutable object by setting a value for thereplyTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for replyTs- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofReplySkeletonthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:userId,replyTs. -
toString
Prints the immutable valueReplySkeletonwith attribute values. -
copyOf
Creates an immutable copy of aReplySkeletonIFvalue. 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 ReplySkeleton instance
-
builder
Creates a builder forReplySkeleton.ReplySkeleton.builder() .setUserId(String) // requireduserId.setReplyTs(String) // requiredreplyTs.build();- Returns:
- A new ReplySkeleton builder
-