Class ChannelsHistoryParams
java.lang.Object
com.hubspot.slack.client.methods.params.channels.AbstractChannelsHistoryParams
com.hubspot.slack.client.methods.params.channels.ChannelsHistoryParams
- All Implemented Interfaces:
HasChannel,TimeIntervalFilter
@Generated(from="AbstractChannelsHistoryParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelsHistoryParams
extends AbstractChannelsHistoryParams
Immutable implementation of
AbstractChannelsHistoryParams.
Use the builder to create immutable instances:
ChannelsHistoryParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChannelsHistoryParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChannelsHistoryParams.static ChannelsHistoryParamscopyOf(AbstractChannelsHistoryParams instance) Creates an immutable copy of aAbstractChannelsHistoryParamsvalue.booleanThis instance is equal to all instances ofChannelsHistoryParamsthat have equal attribute values.getCount()inthashCode()Computes a hash code from attributes:newestTimestamp,oldestTimestamp,pagingDirection,channelId,count,inclusive,shouldIncludeUnreads.toString()Prints the immutable valueChannelsHistoryParamswith attribute values.final ChannelsHistoryParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ChannelsHistoryParamsCopy the current immutable object by setting a present value for the optionalcountattribute.final ChannelsHistoryParamsCopy the current immutable object by setting an optional value for thecountattribute.final ChannelsHistoryParamswithInclusive(Boolean value) Copy the current immutable object by setting a present value for the optionalinclusiveattribute.final ChannelsHistoryParamswithInclusive(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theinclusiveattribute.final ChannelsHistoryParamswithNewestTimestamp(String value) Copy the current immutable object by setting a present value for the optionalnewestTimestampattribute.final ChannelsHistoryParamswithNewestTimestamp(Optional<String> optional) Copy the current immutable object by setting an optional value for thenewestTimestampattribute.final ChannelsHistoryParamswithOldestTimestamp(String value) Copy the current immutable object by setting a present value for the optionaloldestTimestampattribute.final ChannelsHistoryParamswithOldestTimestamp(Optional<String> optional) Copy the current immutable object by setting an optional value for theoldestTimestampattribute.final ChannelsHistoryParamswithShouldIncludeUnreads(Boolean value) Copy the current immutable object by setting a present value for the optionalshouldIncludeUnreadsattribute.final ChannelsHistoryParamswithShouldIncludeUnreads(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theshouldIncludeUnreadsattribute.Methods inherited from class com.hubspot.slack.client.methods.params.channels.AbstractChannelsHistoryParams
validate
-
Method Details
-
getNewestTimestamp
- Returns:
- The value of the
newestTimestampattribute
-
getOldestTimestamp
- Returns:
- The value of the
oldestTimestampattribute
-
getPagingDirection
- Returns:
- The computed-at-construction value of the
pagingDirectionattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Specified by:
getChannelIdin classAbstractChannelsHistoryParams- Returns:
- The value of the
channelIdattribute
-
getCount
- Specified by:
getCountin classAbstractChannelsHistoryParams- Returns:
- The value of the
countattribute
-
isInclusive
- Specified by:
isInclusivein interfaceTimeIntervalFilter- Specified by:
isInclusivein classAbstractChannelsHistoryParams- Returns:
- The value of the
inclusiveattribute
-
shouldIncludeUnreads
- Specified by:
shouldIncludeUnreadsin classAbstractChannelsHistoryParams- Returns:
- The value of the
shouldIncludeUnreadsattribute
-
withNewestTimestamp
Copy the current immutable object by setting a present value for the optionalnewestTimestampattribute.- Parameters:
value- The value for newestTimestamp,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withNewestTimestamp
Copy the current immutable object by setting an optional value for thenewestTimestampattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for newestTimestamp- Returns:
- A modified copy or
thisif not changed
-
withOldestTimestamp
Copy the current immutable object by setting a present value for the optionaloldestTimestampattribute.- Parameters:
value- The value for oldestTimestamp,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withOldestTimestamp
Copy the current immutable object by setting an optional value for theoldestTimestampattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for oldestTimestamp- Returns:
- A modified copy or
thisif not changed
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withCount
Copy the current immutable object by setting a present value for the optionalcountattribute.- Parameters:
value- The value for count,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCount
Copy the current immutable object by setting an optional value for thecountattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for count- Returns:
- A modified copy or
thisif not changed
-
withInclusive
Copy the current immutable object by setting a present value for the optionalinclusiveattribute.- Parameters:
value- The value for inclusive,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInclusive
Copy the current immutable object by setting an optional value for theinclusiveattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for inclusive- Returns:
- A modified copy or
thisif not changed
-
withShouldIncludeUnreads
Copy the current immutable object by setting a present value for the optionalshouldIncludeUnreadsattribute.- Parameters:
value- The value for shouldIncludeUnreads,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withShouldIncludeUnreads
Copy the current immutable object by setting an optional value for theshouldIncludeUnreadsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for shouldIncludeUnreads- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofChannelsHistoryParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:newestTimestamp,oldestTimestamp,pagingDirection,channelId,count,inclusive,shouldIncludeUnreads. -
toString
Prints the immutable valueChannelsHistoryParamswith attribute values. -
copyOf
Creates an immutable copy of aAbstractChannelsHistoryParamsvalue. 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 ChannelsHistoryParams instance
-
builder
Creates a builder forChannelsHistoryParams.ChannelsHistoryParams.builder() .setNewestTimestamp(Optional<String>) // optionalnewestTimestamp.setOldestTimestamp(Optional<String>) // optionaloldestTimestamp.setChannelId(String) // requiredchannelId.setCount(Optional<Integer>) // optionalcount.setInclusive(Optional<Boolean>) // optionalinclusive.setShouldIncludeUnreads(Optional<Boolean>) // optionalshouldIncludeUnreads.build();- Returns:
- A new ChannelsHistoryParams builder
-