Class ConversationInviteSharedParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationInviteSharedParams.Builder
- Enclosing class:
ConversationInviteSharedParams
@Generated(from="ConversationInviteSharedParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ConversationInviteSharedParams.Builder
extends Object
Builds instances of type
ConversationInviteSharedParams.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllEmails(Iterable<String> elements) Adds elements toemailslist.addAllUserIds(Iterable<String> elements) Adds elements touserIdslist.Adds one element toemailslist.Adds elements toemailslist.addUserIds(String element) Adds one element touserIdslist.addUserIds(String... elements) Adds elements touserIdslist.build()Builds a newConversationInviteSharedParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(ConversationInviteSharedParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.ConversationInviteSharedParamsIFinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.Sets or replaces all elements foremailslist.setUserIds(Iterable<String> elements) Sets or replaces all elements foruserIdslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
addEmails
Adds one element toemailslist.- Parameters:
element- A emails element- Returns:
thisbuilder for use in a chained invocation
-
addEmails
Adds elements toemailslist.- Parameters:
elements- An array of emails elements- Returns:
thisbuilder for use in a chained invocation
-
setEmails
Sets or replaces all elements foremailslist.- Parameters:
elements- An iterable of emails elements- Returns:
thisbuilder for use in a chained invocation
-
addAllEmails
Adds elements toemailslist.- Parameters:
elements- An iterable of emails elements- Returns:
thisbuilder for use in a chained invocation
-
addUserIds
Adds one element touserIdslist.- Parameters:
element- A userIds element- Returns:
thisbuilder for use in a chained invocation
-
addUserIds
Adds elements touserIdslist.- Parameters:
elements- An array of userIds elements- Returns:
thisbuilder for use in a chained invocation
-
setUserIds
Sets or replaces all elements foruserIdslist.- Parameters:
elements- An iterable of userIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllUserIds
Adds elements touserIdslist.- Parameters:
elements- An iterable of userIds elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newConversationInviteSharedParams.- Returns:
- An immutable instance of ConversationInviteSharedParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing