@NotThreadSafe public static final class ChannelsHistoryParams.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
ChannelsHistoryParams |
build()
Builds a new
ChannelsHistoryParams. |
ChannelsHistoryParams.Builder |
from(AbstractChannelsHistoryParams instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.channels.AbstractChannelsHistoryParams instance. |
ChannelsHistoryParams.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
ChannelsHistoryParams.Builder |
from(TimeIntervalFilter instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.TimeIntervalFilter instance. |
ChannelsHistoryParams.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
ChannelsHistoryParams.Builder |
setCount(Integer count)
Initializes the optional value
count to count. |
ChannelsHistoryParams.Builder |
setCount(Optional<Integer> count)
Initializes the optional value
count to count. |
ChannelsHistoryParams.Builder |
setInclusive(Boolean inclusive)
Initializes the optional value
inclusive to inclusive. |
ChannelsHistoryParams.Builder |
setInclusive(Optional<Boolean> inclusive)
Initializes the optional value
inclusive to inclusive. |
ChannelsHistoryParams.Builder |
setNewestTimestamp(Optional<String> newestTimestamp)
Initializes the optional value
newestTimestamp to newestTimestamp. |
ChannelsHistoryParams.Builder |
setNewestTimestamp(String newestTimestamp)
Initializes the optional value
newestTimestamp to newestTimestamp. |
ChannelsHistoryParams.Builder |
setOldestTimestamp(Optional<String> oldestTimestamp)
Initializes the optional value
oldestTimestamp to oldestTimestamp. |
ChannelsHistoryParams.Builder |
setOldestTimestamp(String oldestTimestamp)
Initializes the optional value
oldestTimestamp to oldestTimestamp. |
ChannelsHistoryParams.Builder |
setShouldIncludeUnreads(Boolean shouldIncludeUnreads)
Initializes the optional value
shouldIncludeUnreads to shouldIncludeUnreads. |
ChannelsHistoryParams.Builder |
setShouldIncludeUnreads(Optional<Boolean> shouldIncludeUnreads)
Initializes the optional value
shouldIncludeUnreads to shouldIncludeUnreads. |
public final ChannelsHistoryParams.Builder from(AbstractChannelsHistoryParams instance)
com.hubspot.slack.client.methods.params.channels.AbstractChannelsHistoryParams instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder from(HasChannel instance)
com.hubspot.slack.client.methods.interceptor.HasChannel instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder from(TimeIntervalFilter instance)
com.hubspot.slack.client.methods.TimeIntervalFilter instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder setCount(@Nullable Integer count)
count to count.count - The value for count, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsHistoryParams.Builder setCount(Optional<Integer> count)
count to count.count - The value for countthis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder setInclusive(@Nullable Boolean inclusive)
inclusive to inclusive.inclusive - The value for inclusive, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsHistoryParams.Builder setInclusive(Optional<Boolean> inclusive)
inclusive to inclusive.inclusive - The value for inclusivethis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder setShouldIncludeUnreads(@Nullable Boolean shouldIncludeUnreads)
shouldIncludeUnreads to shouldIncludeUnreads.shouldIncludeUnreads - The value for shouldIncludeUnreads, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsHistoryParams.Builder setShouldIncludeUnreads(Optional<Boolean> shouldIncludeUnreads)
shouldIncludeUnreads to shouldIncludeUnreads.shouldIncludeUnreads - The value for shouldIncludeUnreadsthis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder setNewestTimestamp(@Nullable String newestTimestamp)
newestTimestamp to newestTimestamp.newestTimestamp - The value for newestTimestamp, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsHistoryParams.Builder setNewestTimestamp(Optional<String> newestTimestamp)
newestTimestamp to newestTimestamp.newestTimestamp - The value for newestTimestampthis builder for use in a chained invocationpublic final ChannelsHistoryParams.Builder setOldestTimestamp(@Nullable String oldestTimestamp)
oldestTimestamp to oldestTimestamp.oldestTimestamp - The value for oldestTimestamp, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChannelsHistoryParams.Builder setOldestTimestamp(Optional<String> oldestTimestamp)
oldestTimestamp to oldestTimestamp.oldestTimestamp - The value for oldestTimestampthis builder for use in a chained invocationpublic ChannelsHistoryParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChannelsHistoryParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.