Class UsergroupListParams
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupListParams
- All Implemented Interfaces:
UsergroupListParamsIF
@Generated(from="UsergroupListParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsergroupListParams
extends Object
implements UsergroupListParamsIF
Immutable implementation of
UsergroupListParamsIF.
Use the builder to create immutable instances:
UsergroupListParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsergroupListParams. -
Method Summary
Modifier and TypeMethodDescriptionstatic UsergroupListParams.Builderbuilder()Creates a builder forUsergroupListParams.static UsergroupListParamscopyOf(UsergroupListParamsIF instance) Creates an immutable copy of aUsergroupListParamsIFvalue.booleanThis instance is equal to all instances ofUsergroupListParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:includeCount,includeDisabled,includeUsers.toString()Prints the immutable valueUsergroupListParamswith attribute values.final UsergroupListParamswithIncludeCount(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeCountattribute.final UsergroupListParamswithIncludeCount(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeCountattribute.final UsergroupListParamswithIncludeDisabled(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeDisabledattribute.final UsergroupListParamswithIncludeDisabled(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeDisabledattribute.final UsergroupListParamswithIncludeUsers(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeUsersattribute.final UsergroupListParamswithIncludeUsers(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeUsersattribute.
-
Method Details
-
getIncludeCount
- Specified by:
getIncludeCountin interfaceUsergroupListParamsIF- Returns:
- The value of the
includeCountattribute
-
getIncludeDisabled
- Specified by:
getIncludeDisabledin interfaceUsergroupListParamsIF- Returns:
- The value of the
includeDisabledattribute
-
getIncludeUsers
- Specified by:
getIncludeUsersin interfaceUsergroupListParamsIF- Returns:
- The value of the
includeUsersattribute
-
withIncludeCount
Copy the current immutable object by setting a present value for the optionalincludeCountattribute.- Parameters:
value- The value for includeCount,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIncludeCount
Copy the current immutable object by setting an optional value for theincludeCountattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for includeCount- Returns:
- A modified copy or
thisif not changed
-
withIncludeDisabled
Copy the current immutable object by setting a present value for the optionalincludeDisabledattribute.- Parameters:
value- The value for includeDisabled,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIncludeDisabled
Copy the current immutable object by setting an optional value for theincludeDisabledattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for includeDisabled- Returns:
- A modified copy or
thisif not changed
-
withIncludeUsers
Copy the current immutable object by setting a present value for the optionalincludeUsersattribute.- Parameters:
value- The value for includeUsers,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIncludeUsers
Copy the current immutable object by setting an optional value for theincludeUsersattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for includeUsers- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofUsergroupListParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:includeCount,includeDisabled,includeUsers. -
toString
Prints the immutable valueUsergroupListParamswith attribute values. -
copyOf
Creates an immutable copy of aUsergroupListParamsIFvalue. 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 UsergroupListParams instance
-
builder
Creates a builder forUsergroupListParams.UsergroupListParams.builder() .setIncludeCount(Optional<Boolean>) // optionalincludeCount.setIncludeDisabled(Optional<Boolean>) // optionalincludeDisabled.setIncludeUsers(Optional<Boolean>) // optionalincludeUsers.build();- Returns:
- A new UsergroupListParams builder
-