Class ConversationInviteParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationInviteParams.Builder
- Enclosing class:
ConversationInviteParams
@Generated(from="ConversationInviteParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ConversationInviteParams.Builder
extends Object
Builds instances of type
ConversationInviteParams.
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 TypeMethodDescriptionaddAllUsers(Iterable<String> elements) Adds elements touserslist.Adds one element touserslist.Adds elements touserslist.build()Builds a newConversationInviteParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(ConversationInviteParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.ConversationInviteParamsIFinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.Sets or replaces all elements foruserslist.
-
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
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.conversations.ConversationInviteParamsIFinstance.- 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
-
addUsers
Adds one element touserslist.- Parameters:
element- A users element- Returns:
thisbuilder for use in a chained invocation
-
addUsers
Adds elements touserslist.- Parameters:
elements- An array of users elements- Returns:
thisbuilder for use in a chained invocation
-
setUsers
Sets or replaces all elements foruserslist.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
addAllUsers
Adds elements touserslist.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newConversationInviteParams.- Returns:
- An immutable instance of ConversationInviteParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-