Class ConversationHistoryPagedParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationHistoryPagedParams.Builder
- Enclosing class:
ConversationHistoryPagedParams
@Generated(from="AbstractConversationHistoryPagedParams",
generator="Immutables")
@NotThreadSafe
public static final class ConversationHistoryPagedParams.Builder
extends Object
Builds instances of type
ConversationHistoryPagedParams.
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 newConversationHistoryPagedParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(AbstractConversationHistoryPagedParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.AbstractConversationHistoryPagedParamsinstance.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 valuecursorto cursor.Initializes the optional valuecursorto cursor.setInclusive(Boolean inclusive) Initializes the optional valueinclusiveto inclusive.setInclusive(Optional<Boolean> inclusive) Initializes the optional valueinclusiveto inclusive.Initializes the optional valuelimitto limit.Initializes the optional valuelimitto limit.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.
-
Method Details
-
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
-
from
public final ConversationHistoryPagedParams.Builder from(AbstractConversationHistoryPagedParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.AbstractConversationHistoryPagedParamsinstance.- Parameters:
instance- The instance from which to copy values- 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
-
setNewestTimestamp
public final ConversationHistoryPagedParams.Builder setNewestTimestamp(@Nullable String newestTimestamp) Initializes the optional valuenewestTimestampto newestTimestamp.- Parameters:
newestTimestamp- The value for newestTimestamp,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setNewestTimestamp
public final ConversationHistoryPagedParams.Builder setNewestTimestamp(Optional<String> newestTimestamp) Initializes the optional valuenewestTimestampto newestTimestamp.- Parameters:
newestTimestamp- The value for newestTimestamp- Returns:
thisbuilder for use in a chained invocation
-
setOldestTimestamp
public final ConversationHistoryPagedParams.Builder setOldestTimestamp(@Nullable String oldestTimestamp) Initializes the optional valueoldestTimestampto oldestTimestamp.- Parameters:
oldestTimestamp- The value for oldestTimestamp,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setOldestTimestamp
public final ConversationHistoryPagedParams.Builder setOldestTimestamp(Optional<String> oldestTimestamp) 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
-
setCursor
Initializes the optional valuecursorto cursor.- Parameters:
cursor- The value for cursor,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setCursor
Initializes the optional valuecursorto cursor.- Parameters:
cursor- The value for cursor- Returns:
thisbuilder for use in a chained invocation
-
setLimit
Initializes the optional valuelimitto limit.- Parameters:
limit- The value for limit,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLimit
Initializes the optional valuelimitto limit.- Parameters:
limit- The value for limit- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newConversationHistoryPagedParams.- Returns:
- An immutable instance of ConversationHistoryPagedParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-