Class ChannelsHistoryParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsHistoryParams.Builder
Enclosing class:
ChannelsHistoryParams

@Generated(from="AbstractChannelsHistoryParams", generator="Immutables") @NotThreadSafe public static final class ChannelsHistoryParams.Builder extends Object
Builds instances of type ChannelsHistoryParams. 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 com.hubspot.slack.client.methods.params.channels.AbstractChannelsHistoryParams instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ChannelsHistoryParams.Builder from(HasChannel instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.interceptor.HasChannel instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ChannelsHistoryParams.Builder from(TimeIntervalFilter instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.TimeIntervalFilter instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setNewestTimestamp

      public final ChannelsHistoryParams.Builder setNewestTimestamp(@Nullable String newestTimestamp)
      Initializes the optional value newestTimestamp to newestTimestamp.
      Parameters:
      newestTimestamp - The value for newestTimestamp, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setNewestTimestamp

      public final ChannelsHistoryParams.Builder setNewestTimestamp(Optional<String> newestTimestamp)
      Initializes the optional value newestTimestamp to newestTimestamp.
      Parameters:
      newestTimestamp - The value for newestTimestamp
      Returns:
      this builder for use in a chained invocation
    • setOldestTimestamp

      public final ChannelsHistoryParams.Builder setOldestTimestamp(@Nullable String oldestTimestamp)
      Initializes the optional value oldestTimestamp to oldestTimestamp.
      Parameters:
      oldestTimestamp - The value for oldestTimestamp, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setOldestTimestamp

      public final ChannelsHistoryParams.Builder setOldestTimestamp(Optional<String> oldestTimestamp)
      Initializes the optional value oldestTimestamp to oldestTimestamp.
      Parameters:
      oldestTimestamp - The value for oldestTimestamp
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final ChannelsHistoryParams.Builder setChannelId(String channelId)
      Initializes the value for the channelId attribute.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setCount

      public final ChannelsHistoryParams.Builder setCount(@Nullable Integer count)
      Initializes the optional value count to count.
      Parameters:
      count - The value for count, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setCount

      public final ChannelsHistoryParams.Builder setCount(Optional<Integer> count)
      Initializes the optional value count to count.
      Parameters:
      count - The value for count
      Returns:
      this builder for use in a chained invocation
    • setInclusive

      public final ChannelsHistoryParams.Builder setInclusive(@Nullable Boolean inclusive)
      Initializes the optional value inclusive to inclusive.
      Parameters:
      inclusive - The value for inclusive, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setInclusive

      public final ChannelsHistoryParams.Builder setInclusive(Optional<Boolean> inclusive)
      Initializes the optional value inclusive to inclusive.
      Parameters:
      inclusive - The value for inclusive
      Returns:
      this builder for use in a chained invocation
    • setShouldIncludeUnreads

      public final ChannelsHistoryParams.Builder setShouldIncludeUnreads(@Nullable Boolean shouldIncludeUnreads)
      Initializes the optional value shouldIncludeUnreads to shouldIncludeUnreads.
      Parameters:
      shouldIncludeUnreads - The value for shouldIncludeUnreads, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setShouldIncludeUnreads

      public final ChannelsHistoryParams.Builder setShouldIncludeUnreads(Optional<Boolean> shouldIncludeUnreads)
      Initializes the optional value shouldIncludeUnreads to shouldIncludeUnreads.
      Parameters:
      shouldIncludeUnreads - The value for shouldIncludeUnreads
      Returns:
      this builder for use in a chained invocation
    • build

      public ChannelsHistoryParams build()
      Builds a new ChannelsHistoryParams.
      Returns:
      An immutable instance of ChannelsHistoryParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing