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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newChannelsHistoryParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(AbstractChannelsHistoryParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.AbstractChannelsHistoryParamsinstance.from(TimeIntervalFilter instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.TimeIntervalFilterinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.Initializes the optional valuecountto count.Initializes the optional valuecountto count.setInclusive(Boolean inclusive) Initializes the optional valueinclusiveto inclusive.setInclusive(Optional<Boolean> inclusive) Initializes the optional valueinclusiveto inclusive.setNewestTimestamp(String newestTimestamp) Initializes the optional valuenewestTimestampto newestTimestamp.setNewestTimestamp(Optional<String> newestTimestamp) Initializes the optional valuenewestTimestampto newestTimestamp.setOldestTimestamp(String oldestTimestamp) Initializes the optional valueoldestTimestampto oldestTimestamp.setOldestTimestamp(Optional<String> oldestTimestamp) Initializes the optional valueoldestTimestampto oldestTimestamp.setShouldIncludeUnreads(Boolean shouldIncludeUnreads) Initializes the optional valueshouldIncludeUnreadsto shouldIncludeUnreads.setShouldIncludeUnreads(Optional<Boolean> shouldIncludeUnreads) Initializes the optional valueshouldIncludeUnreadsto shouldIncludeUnreads.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.AbstractChannelsHistoryParamsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.TimeIntervalFilterinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setNewestTimestamp
Initializes the optional valuenewestTimestampto newestTimestamp.- Parameters:
newestTimestamp- The value for newestTimestamp,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setNewestTimestamp
Initializes the optional valuenewestTimestampto newestTimestamp.- Parameters:
newestTimestamp- The value for newestTimestamp- Returns:
thisbuilder for use in a chained invocation
-
setOldestTimestamp
Initializes the optional valueoldestTimestampto oldestTimestamp.- Parameters:
oldestTimestamp- The value for oldestTimestamp,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setOldestTimestamp
Initializes the optional valueoldestTimestampto oldestTimestamp.- Parameters:
oldestTimestamp- The value for oldestTimestamp- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setCount
Initializes the optional valuecountto count.- Parameters:
count- The value for count,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setCount
Initializes the optional valuecountto count.- Parameters:
count- The value for count- Returns:
thisbuilder for use in a chained invocation
-
setInclusive
Initializes the optional valueinclusiveto inclusive.- Parameters:
inclusive- The value for inclusive,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setInclusive
Initializes the optional valueinclusiveto inclusive.- Parameters:
inclusive- The value for inclusive- Returns:
thisbuilder for use in a chained invocation
-
setShouldIncludeUnreads
public final ChannelsHistoryParams.Builder setShouldIncludeUnreads(@Nullable Boolean shouldIncludeUnreads) Initializes the optional valueshouldIncludeUnreadsto shouldIncludeUnreads.- Parameters:
shouldIncludeUnreads- The value for shouldIncludeUnreads,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setShouldIncludeUnreads
public final ChannelsHistoryParams.Builder setShouldIncludeUnreads(Optional<Boolean> shouldIncludeUnreads) Initializes the optional valueshouldIncludeUnreadsto shouldIncludeUnreads.- Parameters:
shouldIncludeUnreads- The value for shouldIncludeUnreads- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChannelsHistoryParams.- Returns:
- An immutable instance of ChannelsHistoryParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-