Class ConversationHistoryPagedParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.AbstractConversationHistoryPagedParams
com.hubspot.slack.client.methods.params.conversations.ConversationHistoryPagedParams
- All Implemented Interfaces:
HasChannel,TimeIntervalFilter
@Generated(from="AbstractConversationHistoryPagedParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationHistoryPagedParams
extends AbstractConversationHistoryPagedParams
Immutable implementation of
AbstractConversationHistoryPagedParams.
Use the builder to create immutable instances:
ConversationHistoryPagedParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationHistoryPagedParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationHistoryPagedParams.copyOf(AbstractConversationHistoryPagedParams instance) Creates an immutable copy of aAbstractConversationHistoryPagedParamsvalue.booleanThis instance is equal to all instances ofConversationHistoryPagedParamsthat have equal attribute values.getLimit()inthashCode()Computes a hash code from attributes:inclusive,newestTimestamp,oldestTimestamp,pagingDirection,channelId,cursor,limit.toString()Prints the immutable valueConversationHistoryPagedParamswith attribute values.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withCursor(String value) Copy the current immutable object by setting a present value for the optionalcursorattribute.withCursor(Optional<String> optional) Copy the current immutable object by setting an optional value for thecursorattribute.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 classAbstractConversationHistoryPagedParams- Returns:
- The value of the
channelIdattribute
-
getCursor
- Specified by:
getCursorin classAbstractConversationHistoryPagedParams- Returns:
- The value of the
cursorattribute
-
getLimit
- Specified by:
getLimitin classAbstractConversationHistoryPagedParams- 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
-
withCursor
Copy the current immutable object by setting a present value for the optionalcursorattribute.- Parameters:
value- The value for cursor,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCursor
Copy the current immutable object by setting an optional value for thecursorattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for cursor- Returns:
- A modified copy or
thisif not changed
-
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 ofConversationHistoryPagedParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:inclusive,newestTimestamp,oldestTimestamp,pagingDirection,channelId,cursor,limit. -
toString
Prints the immutable valueConversationHistoryPagedParamswith attribute values. -
copyOf
public static ConversationHistoryPagedParams copyOf(AbstractConversationHistoryPagedParams instance) Creates an immutable copy of aAbstractConversationHistoryPagedParamsvalue. 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 ConversationHistoryPagedParams instance
-
builder
Creates a builder forConversationHistoryPagedParams.ConversationHistoryPagedParams.builder() .setInclusive(Optional<Boolean>) // optionalinclusive.setNewestTimestamp(Optional<String>) // optionalnewestTimestamp.setOldestTimestamp(Optional<String>) // optionaloldestTimestamp.setChannelId(String) // requiredchannelId.setCursor(Optional<String>) // optionalcursor.setLimit(Optional<Integer>) // optionallimit.build();- Returns:
- A new ConversationHistoryPagedParams builder
-