Class ConversationInviteParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationInviteParams
- All Implemented Interfaces:
HasChannel,ConversationInviteParamsIF
@Generated(from="ConversationInviteParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationInviteParams
extends Object
implements ConversationInviteParamsIF
Immutable implementation of
ConversationInviteParamsIF.
Use the builder to create immutable instances:
ConversationInviteParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationInviteParams. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.conversations.ConversationInviteParamsIF
COMMA_JOINER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationInviteParams.static ConversationInviteParamscopyOf(ConversationInviteParamsIF instance) Creates an immutable copy of aConversationInviteParamsIFvalue.booleanThis instance is equal to all instances ofConversationInviteParamsthat have equal attribute values.getUsers()inthashCode()Computes a hash code from attributes:channelId,users.toString()Prints the immutable valueConversationInviteParamswith attribute values.final ConversationInviteParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ConversationInviteParamsCopy the current immutable object with elements that replace the content ofusers.final ConversationInviteParamsCopy the current immutable object with elements that replace the content ofusers.Methods inherited from interface com.hubspot.slack.client.methods.params.conversations.ConversationInviteParamsIF
getUsersBecauseSlackApiIsGarbage
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceConversationInviteParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getUsers
- Specified by:
getUsersin interfaceConversationInviteParamsIF- Returns:
- The value of the
usersattribute
-
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
-
withUsers
Copy the current immutable object with elements that replace the content ofusers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withUsers
Copy the current immutable object with elements that replace the content ofusers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of users elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationInviteParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,users. -
toString
Prints the immutable valueConversationInviteParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationInviteParamsIFvalue. 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 ConversationInviteParams instance
-
builder
Creates a builder forConversationInviteParams.ConversationInviteParams.builder() .setChannelId(String) // requiredchannelId.addUsers|addAllUsers(String) //userselements .build();- Returns:
- A new ConversationInviteParams builder
-