Class ChannelsKickParams
java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsKickParams
- All Implemented Interfaces:
HasChannel,ChannelsKickParamsIF
@Generated(from="ChannelsKickParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelsKickParams
extends Object
implements ChannelsKickParamsIF
Immutable implementation of
ChannelsKickParamsIF.
Use the builder to create immutable instances:
ChannelsKickParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelsKickParams.Builderbuilder()Creates a builder forChannelsKickParams.static ChannelsKickParamscopyOf(ChannelsKickParamsIF instance) Creates an immutable copy of aChannelsKickParamsIFvalue.booleanThis instance is equal to all instances ofChannelsKickParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelId,userId.toString()Prints the immutable valueChannelsKickParamswith attribute values.final ChannelsKickParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ChannelsKickParamswithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceChannelsKickParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getUserId
- Specified by:
getUserIdin interfaceChannelsKickParamsIF- 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 ofChannelsKickParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,userId. -
toString
Prints the immutable valueChannelsKickParamswith attribute values. -
copyOf
Creates an immutable copy of aChannelsKickParamsIFvalue. 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 ChannelsKickParams instance
-
builder
Creates a builder forChannelsKickParams.ChannelsKickParams.builder() .setChannelId(String) // requiredchannelId.setUserId(String) // requireduserId.build();- Returns:
- A new ChannelsKickParams builder
-