Class UsergroupUsersUpdateParams
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.users.AbstractUsergroupUsersUpdateParams
com.hubspot.slack.client.methods.params.usergroups.users.UsergroupUsersUpdateParams
- All Implemented Interfaces:
HasCommaSeperatedUserIds,HasUsergroup
@Generated(from="AbstractUsergroupUsersUpdateParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class UsergroupUsersUpdateParams
extends AbstractUsergroupUsersUpdateParams
Immutable implementation of
AbstractUsergroupUsersUpdateParams.
Use the builder to create immutable instances:
UsergroupUsersUpdateParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeUsergroupUsersUpdateParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forUsergroupUsersUpdateParams.static UsergroupUsersUpdateParamscopyOf(AbstractUsergroupUsersUpdateParams instance) Creates an immutable copy of aAbstractUsergroupUsersUpdateParamsvalue.booleanThis instance is equal to all instances ofUsergroupUsersUpdateParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:rawUserIds,encodedUsers,usergroupId,includeCount.toString()Prints the immutable valueUsergroupUsersUpdateParamswith attribute values.withIncludeCount(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeCountattribute.withIncludeCount(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeCountattribute.withRawUserIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofrawUserIds.withRawUserIds(String... elements) Copy the current immutable object with elements that replace the content ofrawUserIds.withUsergroupId(String value) Copy the current immutable object by setting a value for theusergroupIdattribute.
-
Method Details
-
getRawUserIds
- Returns:
- The value of the
rawUserIdsattribute
-
getEncodedUsers
- Returns:
- The computed-at-construction value of the
encodedUsersattribute
-
getUsergroupId
- Specified by:
getUsergroupIdin interfaceHasUsergroup- Specified by:
getUsergroupIdin classAbstractUsergroupUsersUpdateParams- Returns:
- The value of the
usergroupIdattribute
-
getIncludeCount
- Specified by:
getIncludeCountin classAbstractUsergroupUsersUpdateParams- Returns:
- The value of the
includeCountattribute
-
withRawUserIds
Copy the current immutable object with elements that replace the content ofrawUserIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRawUserIds
Copy the current immutable object with elements that replace the content ofrawUserIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of rawUserIds elements to set- Returns:
- A modified copy or
thisif not changed
-
withUsergroupId
Copy the current immutable object by setting a value for theusergroupIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for usergroupId- Returns:
- A modified copy or the
thisobject
-
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
-
equals
This instance is equal to all instances ofUsergroupUsersUpdateParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:rawUserIds,encodedUsers,usergroupId,includeCount. -
toString
Prints the immutable valueUsergroupUsersUpdateParamswith attribute values. -
copyOf
Creates an immutable copy of aAbstractUsergroupUsersUpdateParamsvalue. 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 UsergroupUsersUpdateParams instance
-
builder
Creates a builder forUsergroupUsersUpdateParams.UsergroupUsersUpdateParams.builder() .addRawUserIds|addAllRawUserIds(String) //rawUserIdselements .setUsergroupId(String) // requiredusergroupId.setIncludeCount(Optional<Boolean>) // optionalincludeCount.build();- Returns:
- A new UsergroupUsersUpdateParams builder
-