Class ConversationInviteSharedParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationInviteSharedParams
- All Implemented Interfaces:
HasChannel,ConversationInviteSharedParamsIF
@Generated(from="ConversationInviteSharedParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationInviteSharedParams
extends Object
implements ConversationInviteSharedParamsIF
Immutable implementation of
ConversationInviteSharedParamsIF.
Use the builder to create immutable instances:
ConversationInviteSharedParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationInviteSharedParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationInviteSharedParams.copyOf(ConversationInviteSharedParamsIF instance) Creates an immutable copy of aConversationInviteSharedParamsIFvalue.booleanThis instance is equal to all instances ofConversationInviteSharedParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelId,emails,userIds.toString()Prints the immutable valueConversationInviteSharedParamswith attribute values.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withEmails(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofemails.withEmails(String... elements) Copy the current immutable object with elements that replace the content ofemails.withUserIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofuserIds.withUserIds(String... elements) Copy the current immutable object with elements that replace the content ofuserIds.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceConversationInviteSharedParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getEmails
- Specified by:
getEmailsin interfaceConversationInviteSharedParamsIF- Returns:
- The value of the
emailsattribute
-
getUserIds
- Specified by:
getUserIdsin interfaceConversationInviteSharedParamsIF- Returns:
- The value of the
userIdsattribute
-
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
-
withEmails
Copy the current immutable object with elements that replace the content ofemails.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEmails
Copy the current immutable object with elements that replace the content ofemails. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of emails elements to set- Returns:
- A modified copy or
thisif not changed
-
withUserIds
Copy the current immutable object with elements that replace the content ofuserIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withUserIds
Copy the current immutable object with elements that replace the content ofuserIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of userIds elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationInviteSharedParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,emails,userIds. -
toString
Prints the immutable valueConversationInviteSharedParamswith attribute values. -
builder
Creates a builder forConversationInviteSharedParams.ConversationInviteSharedParams.builder() .setChannelId(String) // requiredchannelId.addEmails|addAllEmails(String) //emailselements .addUserIds|addAllUserIds(String) //userIdselements .build();- Returns:
- A new ConversationInviteSharedParams builder
-