Class ConversationsUserParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationsUserParams.Builder
- Enclosing class:
ConversationsUserParams
@Generated(from="ConversationsUserParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ConversationsUserParams.Builder
extends Object
Builds instances of type
ConversationsUserParams.
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 TypeMethodDescriptionaddAllConversationTypes(Iterable<ConversationType> elements) Adds elements toconversationTypesset.addConversationTypes(ConversationType element) Adds one element toconversationTypesset.addConversationTypes(ConversationType... elements) Adds elements toconversationTypesset.build()Builds a newConversationsUserParams.from(BaseConversationsFilter instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.BaseConversationsFilterinstance.from(ConversationsUserParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.ConversationsUserParamsIFinstance.setConversationTypes(Iterable<ConversationType> elements) Sets or replaces all elements forconversationTypesset.Initializes the optional valuecursorto cursor.Initializes the optional valuecursorto cursor.Initializes the optional valuelimitto limit.Initializes the optional valuelimitto limit.setShouldExcludeArchived(Boolean shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.Initializes the optional valueuserIdto userId.Initializes the optional valueuserIdto userId.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.BaseConversationsFilterinstance.- 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.ConversationsUserParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setShouldExcludeArchived
public final ConversationsUserParams.Builder setShouldExcludeArchived(@Nullable Boolean shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.- Parameters:
shouldExcludeArchived- The value for shouldExcludeArchived,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setShouldExcludeArchived
public final ConversationsUserParams.Builder setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.- Parameters:
shouldExcludeArchived- The value for shouldExcludeArchived- Returns:
thisbuilder for use in a chained invocation
-
addConversationTypes
Adds one element toconversationTypesset.- Parameters:
element- A conversationTypes element- Returns:
thisbuilder for use in a chained invocation
-
addConversationTypes
Adds elements toconversationTypesset.- Parameters:
elements- An array of conversationTypes elements- Returns:
thisbuilder for use in a chained invocation
-
setConversationTypes
public final ConversationsUserParams.Builder setConversationTypes(Iterable<ConversationType> elements) Sets or replaces all elements forconversationTypesset.- Parameters:
elements- An iterable of conversationTypes elements- Returns:
thisbuilder for use in a chained invocation
-
addAllConversationTypes
public final ConversationsUserParams.Builder addAllConversationTypes(Iterable<ConversationType> elements) Adds elements toconversationTypesset.- Parameters:
elements- An iterable of conversationTypes elements- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the optional valueuserIdto userId.- Parameters:
userId- The value for userId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUserId
Initializes the optional valueuserIdto userId.- Parameters:
userId- The value for userId- 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 newConversationsUserParams.- Returns:
- An immutable instance of ConversationsUserParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-