Class ConversationKickParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationKickParams
- All Implemented Interfaces:
HasChannel,ConversationKickParamsIF
@Generated(from="ConversationKickParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationKickParams
extends Object
implements ConversationKickParamsIF
Immutable implementation of
ConversationKickParamsIF.
Use the builder to create immutable instances:
ConversationKickParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationKickParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationKickParams.static ConversationKickParamscopyOf(ConversationKickParamsIF instance) Creates an immutable copy of aConversationKickParamsIFvalue.booleanThis instance is equal to all instances ofConversationKickParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelId,userId.toString()Prints the immutable valueConversationKickParamswith attribute values.final ConversationKickParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ConversationKickParamswithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceConversationKickParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getUserId
- Specified by:
getUserIdin interfaceConversationKickParamsIF- 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 ofConversationKickParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,userId. -
toString
Prints the immutable valueConversationKickParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationKickParamsIFvalue. 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 ConversationKickParams instance
-
builder
Creates a builder forConversationKickParams.ConversationKickParams.builder() .setChannelId(String) // requiredchannelId.setUserId(String) // requireduserId.build();- Returns:
- A new ConversationKickParams builder
-