Class ChatScheduledMessagesListParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatScheduledMessagesListParams.Builder
Enclosing class:
ChatScheduledMessagesListParams

@Generated(from="ChatScheduledMessagesListParamsIF", generator="Immutables") @NotThreadSafe public static final class ChatScheduledMessagesListParams.Builder extends Object
Builds instances of type ChatScheduledMessagesListParams. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      Fill a builder with attribute values from the provided ChatScheduledMessagesListParamsIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final ChatScheduledMessagesListParams.Builder setChannelId(String channelId)
      Initializes the value for the channelId attribute.

      If not set, this attribute will have a default value as returned by the initializer of channelId.

      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setCursor

      public final ChatScheduledMessagesListParams.Builder setCursor(String cursor)
      Initializes the value for the cursor attribute.

      If not set, this attribute will have a default value as returned by the initializer of cursor.

      Parameters:
      cursor - The value for cursor
      Returns:
      this builder for use in a chained invocation
    • setNewestTimestamp

      public final ChatScheduledMessagesListParams.Builder setNewestTimestamp(String newestTimestamp)
      Initializes the value for the newestTimestamp attribute.

      If not set, this attribute will have a default value as returned by the initializer of newestTimestamp.

      Parameters:
      newestTimestamp - The value for newestTimestamp
      Returns:
      this builder for use in a chained invocation
    • setOldestTimestamp

      public final ChatScheduledMessagesListParams.Builder setOldestTimestamp(String oldestTimestamp)
      Initializes the value for the oldestTimestamp attribute.

      If not set, this attribute will have a default value as returned by the initializer of oldestTimestamp.

      Parameters:
      oldestTimestamp - The value for oldestTimestamp
      Returns:
      this builder for use in a chained invocation
    • setTeamId

      public final ChatScheduledMessagesListParams.Builder setTeamId(String teamId)
      Initializes the value for the teamId attribute.

      If not set, this attribute will have a default value as returned by the initializer of teamId.

      Parameters:
      teamId - The value for teamId
      Returns:
      this builder for use in a chained invocation
    • setLimit

      public final ChatScheduledMessagesListParams.Builder setLimit(Integer limit)
      Initializes the value for the limit attribute.

      If not set, this attribute will have a default value as returned by the initializer of limit.

      Parameters:
      limit - The value for limit
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of ChatScheduledMessagesListParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing