Class SearchMessagesParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.search.SearchMessagesParams.Builder
- Enclosing class:
SearchMessagesParams
@Generated(from="SearchMessagesParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class SearchMessagesParams.Builder
extends Object
Builds instances of type
SearchMessagesParams.
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 newSearchMessagesParams.from(SearchMessagesParamsIF instance) Fill a builder with attribute values from the providedSearchMessagesParamsIFinstance.setCount(int count) Initializes the value for thecountattribute.setPage(int page) Initializes the value for thepageattribute.Initializes the value for thequeryattribute.setShouldHighlight(boolean shouldHighlight) Initializes the value for theshouldHighlightattribute.setSort(ResultSort sort) Initializes the value for thesortattribute.setSortOrder(ResultSortOrder sortOrder) Initializes the value for thesortOrderattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedSearchMessagesParamsIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setQuery
Initializes the value for thequeryattribute.- Parameters:
query- The value for query- Returns:
thisbuilder for use in a chained invocation
-
setShouldHighlight
Initializes the value for theshouldHighlightattribute.If not set, this attribute will have a default value as returned by the initializer of
shouldHighlight.- Parameters:
shouldHighlight- The value for shouldHighlight- Returns:
thisbuilder for use in a chained invocation
-
setCount
Initializes the value for thecountattribute.If not set, this attribute will have a default value as returned by the initializer of
count.- Parameters:
count- The value for count- Returns:
thisbuilder for use in a chained invocation
-
setPage
Initializes the value for thepageattribute.If not set, this attribute will have a default value as returned by the initializer of
page.- Parameters:
page- The value for page- Returns:
thisbuilder for use in a chained invocation
-
setSort
Initializes the value for thesortattribute.If not set, this attribute will have a default value as returned by the initializer of
sort.- Parameters:
sort- The value for sort- Returns:
thisbuilder for use in a chained invocation
-
setSortOrder
Initializes the value for thesortOrderattribute.If not set, this attribute will have a default value as returned by the initializer of
sortOrder.- Parameters:
sortOrder- The value for sortOrder- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSearchMessagesParams.- Returns:
- An immutable instance of SearchMessagesParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-