Class GroupsKickParams
java.lang.Object
com.hubspot.slack.client.methods.params.group.GroupsKickParams
- All Implemented Interfaces:
HasChannel,GroupsKickParamsIF
@Generated(from="GroupsKickParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class GroupsKickParams
extends Object
implements GroupsKickParamsIF
Immutable implementation of
GroupsKickParamsIF.
Use the builder to create immutable instances:
GroupsKickParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupsKickParams.Builderbuilder()Creates a builder forGroupsKickParams.static GroupsKickParamscopyOf(GroupsKickParamsIF instance) Creates an immutable copy of aGroupsKickParamsIFvalue.booleanThis instance is equal to all instances ofGroupsKickParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelId,userId.toString()Prints the immutable valueGroupsKickParamswith attribute values.final GroupsKickParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final GroupsKickParamswithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceGroupsKickParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getUserId
- Specified by:
getUserIdin interfaceGroupsKickParamsIF- Returns:
- The value of the
userIdattribute
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofGroupsKickParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,userId. -
toString
Prints the immutable valueGroupsKickParamswith attribute values. -
copyOf
Creates an immutable copy of aGroupsKickParamsIFvalue. 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 GroupsKickParams instance
-
builder
Creates a builder forGroupsKickParams.GroupsKickParams.builder() .setChannelId(String) // requiredchannelId.setUserId(String) // requireduserId.build();- Returns:
- A new GroupsKickParams builder
-