Class ConversationOpenParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationOpenParams.Builder
- Enclosing class:
ConversationOpenParams
@Generated(from="ConversationOpenParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ConversationOpenParams.Builder
extends Object
Builds instances of type
ConversationOpenParams.
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 newConversationOpenParams.from(ConversationOpenParamsIF instance) Fill a builder with attribute values from the providedConversationOpenParamsIFinstance.setChannelId(String channelId) Initializes the optional valuechannelIdto channelId.setChannelId(Optional<String> channelId) Initializes the optional valuechannelIdto channelId.setReturnIm(boolean returnIm) Initializes the value for thereturnImattribute.Sets or replaces all elements foruserslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedConversationOpenParamsIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the optional valuechannelIdto channelId.- Parameters:
channelId- The value for channelId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setChannelId
Initializes the optional valuechannelIdto channelId.- 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
-
setReturnIm
Initializes the value for thereturnImattribute.If not set, this attribute will have a default value as returned by the initializer of
returnIm.- Parameters:
returnIm- The value for returnIm- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newConversationOpenParams.- Returns:
- An immutable instance of ConversationOpenParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-