Class ConversationsHistoryParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationsHistoryParams.Builder
- Enclosing class:
ConversationsHistoryParams
@Generated(from="AbstractConversationsHistoryParams",
generator="Immutables")
@NotThreadSafe
public static final class ConversationsHistoryParams.Builder
extends Object
Builds instances of type
ConversationsHistoryParams.
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 newConversationsHistoryParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(AbstractConversationsHistoryParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.AbstractConversationsHistoryParamsinstance.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.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.params.conversations.AbstractConversationsHistoryParamsinstance.- 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
-
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 ConversationsHistoryParams.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 ConversationsHistoryParams.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 ConversationsHistoryParams.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 ConversationsHistoryParams.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
-
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 newConversationsHistoryParams.- Returns:
- An immutable instance of ConversationsHistoryParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-