Class FindRepliesParams

java.lang.Object
com.hubspot.slack.client.methods.params.channels.FindRepliesParams
All Implemented Interfaces:
HasChannel, FindRepliesParamsIF, ReplyQueryParams

@Generated(from="FindRepliesParamsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class FindRepliesParams extends Object implements FindRepliesParamsIF
Immutable implementation of FindRepliesParamsIF.

Use the builder to create immutable instances: FindRepliesParams.builder().

  • Method Details

    • getThreadTs

      public String getThreadTs()
      Specified by:
      getThreadTs in interface ReplyQueryParams
      Returns:
      The value of the threadTs attribute
    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface FindRepliesParamsIF
      Specified by:
      getChannelId in interface HasChannel
      Returns:
      The value of the channelId attribute
    • getChannelType

      public ChannelType getChannelType()
      Specified by:
      getChannelType in interface FindRepliesParamsIF
      Returns:
      The computed-at-construction value of the channelType attribute
    • withThreadTs

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

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

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

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

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

      public static FindRepliesParams.Builder builder()
      Creates a builder for FindRepliesParams.
       FindRepliesParams.builder()
          .setThreadTs(String) // required threadTs
          .setChannelId(String) // required channelId
          .build();
       
      Returns:
      A new FindRepliesParams builder