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

  • Method Details

    • getUser

      public String getUser()
      Specified by:
      getUser in interface ReplyIF
      Returns:
      The value of the user attribute
    • getTs

      public String getTs()
      Specified by:
      getTs in interface ReplyIF
      Returns:
      The value of the ts attribute
    • withUser

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of Reply 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: user, ts.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static Reply copyOf(ReplyIF instance)
      Creates an immutable copy of a ReplyIF 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 Reply instance
    • builder

      public static Reply.Builder builder()
      Creates a builder for Reply.
       Reply.builder()
          .setUser(String) // required user
          .setTs(String) // required ts
          .build();
       
      Returns:
      A new Reply builder