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().

  • Method Details

    • getUserId

      public String getUserId()
      Specified by:
      getUserId in interface ReplySkeletonIF
      Returns:
      The value of the userId attribute
    • getReplyTs

      public String getReplyTs()
      Specified by:
      getReplyTs in interface ReplySkeletonIF
      Returns:
      The value of the replyTs attribute
    • withUserId

      public final ReplySkeleton withUserId(String value)
      Copy the current immutable object by setting a value for the userId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userId
      Returns:
      A modified copy or the this object
    • withReplyTs

      public final ReplySkeleton withReplyTs(String value)
      Copy the current immutable object by setting a value for the replyTs attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for replyTs
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ReplySkeleton that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: userId, replyTs.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ReplySkeleton with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ReplySkeleton copyOf(ReplySkeletonIF instance)
      Creates an immutable copy of a ReplySkeletonIF value. 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

      public static ReplySkeleton.Builder builder()
      Creates a builder for ReplySkeleton.
       ReplySkeleton.builder()
          .setUserId(String) // required userId
          .setReplyTs(String) // required replyTs
          .build();
       
      Returns:
      A new ReplySkeleton builder