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

  • Method Details

    • getUser

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

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

      public final MessageEdited 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 MessageEdited 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 MessageEdited 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 MessageEdited with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

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

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