Class SearchMessagesParams
java.lang.Object
com.hubspot.slack.client.methods.params.search.SearchMessagesParams
- All Implemented Interfaces:
SearchMessagesParamsIF
@Generated(from="SearchMessagesParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SearchMessagesParams
extends Object
implements SearchMessagesParamsIF
Immutable implementation of
SearchMessagesParamsIF.
Use the builder to create immutable instances:
SearchMessagesParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSearchMessagesParams. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchMessagesParams.Builderbuilder()Creates a builder forSearchMessagesParams.static SearchMessagesParamscopyOf(SearchMessagesParamsIF instance) Creates an immutable copy of aSearchMessagesParamsIFvalue.booleanThis instance is equal to all instances ofSearchMessagesParamsthat have equal attribute values.intgetCount()intgetPage()getQuery()getSort()inthashCode()Computes a hash code from attributes:query,shouldHighlight,count,page,sort,sortOrder.booleantoString()Prints the immutable valueSearchMessagesParamswith attribute values.final SearchMessagesParamswithCount(int value) Copy the current immutable object by setting a value for thecountattribute.final SearchMessagesParamswithPage(int value) Copy the current immutable object by setting a value for thepageattribute.final SearchMessagesParamsCopy the current immutable object by setting a value for thequeryattribute.final SearchMessagesParamswithShouldHighlight(boolean value) Copy the current immutable object by setting a value for theshouldHighlightattribute.final SearchMessagesParamswithSort(ResultSort value) Copy the current immutable object by setting a value for thesortattribute.final SearchMessagesParamswithSortOrder(ResultSortOrder value) Copy the current immutable object by setting a value for thesortOrderattribute.
-
Method Details
-
getQuery
- Specified by:
getQueryin interfaceSearchMessagesParamsIF- Returns:
- The value of the
queryattribute
-
shouldHighlight
public boolean shouldHighlight()- Specified by:
shouldHighlightin interfaceSearchMessagesParamsIF- Returns:
- The value of the
shouldHighlightattribute
-
getCount
public int getCount()- Specified by:
getCountin interfaceSearchMessagesParamsIF- Returns:
- The value of the
countattribute
-
getPage
public int getPage()- Specified by:
getPagein interfaceSearchMessagesParamsIF- Returns:
- The value of the
pageattribute
-
getSort
- Specified by:
getSortin interfaceSearchMessagesParamsIF- Returns:
- The value of the
sortattribute
-
getSortOrder
- Specified by:
getSortOrderin interfaceSearchMessagesParamsIF- Returns:
- The value of the
sortOrderattribute
-
withQuery
Copy the current immutable object by setting a value for thequeryattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for query- Returns:
- A modified copy or the
thisobject
-
withShouldHighlight
Copy the current immutable object by setting a value for theshouldHighlightattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for shouldHighlight- Returns:
- A modified copy or the
thisobject
-
withCount
Copy the current immutable object by setting a value for thecountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for count- Returns:
- A modified copy or the
thisobject
-
withPage
Copy the current immutable object by setting a value for thepageattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for page- Returns:
- A modified copy or the
thisobject
-
withSort
Copy the current immutable object by setting a value for thesortattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sort- Returns:
- A modified copy or the
thisobject
-
withSortOrder
Copy the current immutable object by setting a value for thesortOrderattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sortOrder- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSearchMessagesParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:query,shouldHighlight,count,page,sort,sortOrder. -
toString
Prints the immutable valueSearchMessagesParamswith attribute values. -
copyOf
Creates an immutable copy of aSearchMessagesParamsIFvalue. 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 SearchMessagesParams instance
-
builder
Creates a builder forSearchMessagesParams.SearchMessagesParams.builder() .setQuery(String) // requiredquery.setShouldHighlight(boolean) // optionalshouldHighlight.setCount(int) // optionalcount.setPage(int) // optionalpage.setSort(com.hubspot.slack.client.methods.ResultSort) // optionalsort.setSortOrder(com.hubspot.slack.client.methods.ResultSortOrder) // optionalsortOrder.build();- Returns:
- A new SearchMessagesParams builder
-