Class ConversationsHistoryParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.AbstractConversationsHistoryParams
com.hubspot.slack.client.methods.params.conversations.ConversationsHistoryParams
- All Implemented Interfaces:
HasChannel,TimeIntervalFilter
@Generated(from="AbstractConversationsHistoryParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsHistoryParams
extends AbstractConversationsHistoryParams
Immutable implementation of
AbstractConversationsHistoryParams.
Use the builder to create immutable instances:
ConversationsHistoryParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsHistoryParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationsHistoryParams.static ConversationsHistoryParamscopyOf(AbstractConversationsHistoryParams instance) Creates an immutable copy of aAbstractConversationsHistoryParamsvalue.booleanThis instance is equal to all instances ofConversationsHistoryParamsthat have equal attribute values.getLimit()inthashCode()Computes a hash code from attributes:inclusive,newestTimestamp,oldestTimestamp,pagingDirection,channelId,limit.toString()Prints the immutable valueConversationsHistoryParamswith attribute values.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withInclusive(Boolean value) Copy the current immutable object by setting a present value for the optionalinclusiveattribute.withInclusive(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theinclusiveattribute.Copy the current immutable object by setting a present value for the optionallimitattribute.Copy the current immutable object by setting an optional value for thelimitattribute.withNewestTimestamp(String value) Copy the current immutable object by setting a present value for the optionalnewestTimestampattribute.withNewestTimestamp(Optional<String> optional) Copy the current immutable object by setting an optional value for thenewestTimestampattribute.withOldestTimestamp(String value) Copy the current immutable object by setting a present value for the optionaloldestTimestampattribute.withOldestTimestamp(Optional<String> optional) Copy the current immutable object by setting an optional value for theoldestTimestampattribute.
-
Method Details
-
isInclusive
- Returns:
- The value of the
inclusiveattribute
-
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 classAbstractConversationsHistoryParams- Returns:
- The value of the
channelIdattribute
-
getLimit
- Specified by:
getLimitin classAbstractConversationsHistoryParams- Returns:
- The value of the
limitattribute
-
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
-
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
-
withLimit
Copy the current immutable object by setting a present value for the optionallimitattribute.- Parameters:
value- The value for limit,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLimit
Copy the current immutable object by setting an optional value for thelimitattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for limit- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationsHistoryParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:inclusive,newestTimestamp,oldestTimestamp,pagingDirection,channelId,limit. -
toString
Prints the immutable valueConversationsHistoryParamswith attribute values. -
copyOf
Creates an immutable copy of aAbstractConversationsHistoryParamsvalue. 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 ConversationsHistoryParams instance
-
builder
Creates a builder forConversationsHistoryParams.ConversationsHistoryParams.builder() .setInclusive(Optional<Boolean>) // optionalinclusive.setNewestTimestamp(Optional<String>) // optionalnewestTimestamp.setOldestTimestamp(Optional<String>) // optionaloldestTimestamp.setChannelId(String) // requiredchannelId.setLimit(Optional<Integer>) // optionallimit.build();- Returns:
- A new ConversationsHistoryParams builder
-