Class ChatScheduledMessagesListParams

java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatScheduledMessagesListParams
All Implemented Interfaces:
ChatScheduledMessagesListParamsIF

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

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

  • Method Details

    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface ChatScheduledMessagesListParamsIF
      Returns:
      The value of the channelId attribute
    • getCursor

      public String getCursor()
      Specified by:
      getCursor in interface ChatScheduledMessagesListParamsIF
      Returns:
      The value of the cursor attribute
    • getNewestTimestamp

      public String getNewestTimestamp()
      Specified by:
      getNewestTimestamp in interface ChatScheduledMessagesListParamsIF
      Returns:
      The value of the newestTimestamp attribute
    • getOldestTimestamp

      public String getOldestTimestamp()
      Specified by:
      getOldestTimestamp in interface ChatScheduledMessagesListParamsIF
      Returns:
      The value of the oldestTimestamp attribute
    • getTeamId

      public String getTeamId()
      Specified by:
      getTeamId in interface ChatScheduledMessagesListParamsIF
      Returns:
      The value of the teamId attribute
    • getLimit

      public Integer getLimit()
      Specified by:
      getLimit in interface ChatScheduledMessagesListParamsIF
      Returns:
      The value of the limit attribute
    • withChannelId

      public final ChatScheduledMessagesListParams 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
    • withCursor

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

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

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

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

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

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

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

      Creates an immutable copy of a ChatScheduledMessagesListParamsIF 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 ChatScheduledMessagesListParams instance
    • builder

      public static ChatScheduledMessagesListParams.Builder builder()
      Creates a builder for ChatScheduledMessagesListParams.
       ChatScheduledMessagesListParams.builder()
          .setChannelId(String) // optional channelId
          .setCursor(String) // optional cursor
          .setNewestTimestamp(String) // optional newestTimestamp
          .setOldestTimestamp(String) // optional oldestTimestamp
          .setTeamId(String) // optional teamId
          .setLimit(Integer) // optional limit
          .build();
       
      Returns:
      A new ChatScheduledMessagesListParams builder