Class SetThreadStatusParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.assistant.SetThreadStatusParams.Builder
- Enclosing class:
SetThreadStatusParams
@Generated(from="SetThreadStatusParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class SetThreadStatusParams.Builder
extends Object
Builds instances of type
SetThreadStatusParams.
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 TypeMethodDescriptionaddAllLoadingMessages(Iterable<String> elements) Adds elements toloadingMessageslist.addLoadingMessages(String element) Adds one element toloadingMessageslist.addLoadingMessages(String... elements) Adds elements toloadingMessageslist.build()Builds a newSetThreadStatusParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(SetThreadStatusParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.assistant.SetThreadStatusParamsIFinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.setIconEmoji(String iconEmoji) Initializes the optional valueiconEmojito iconEmoji.setIconEmoji(Optional<String> iconEmoji) Initializes the optional valueiconEmojito iconEmoji.setIconUrl(String iconUrl) Initializes the optional valueiconUrlto iconUrl.setIconUrl(Optional<String> iconUrl) Initializes the optional valueiconUrlto iconUrl.setLoadingMessages(Iterable<String> elements) Sets or replaces all elements forloadingMessageslist.Initializes the value for thestatusattribute.setThreadTs(String threadTs) Initializes the value for thethreadTsattribute.setUsername(String username) Initializes the optional valueusernameto username.setUsername(Optional<String> username) Initializes the optional valueusernameto username.
-
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.assistant.SetThreadStatusParamsIFinstance.- 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
-
setStatus
Initializes the value for thestatusattribute.- Parameters:
status- The value for status- Returns:
thisbuilder for use in a chained invocation
-
setThreadTs
Initializes the value for thethreadTsattribute.- Parameters:
threadTs- The value for threadTs- Returns:
thisbuilder for use in a chained invocation
-
addLoadingMessages
Adds one element toloadingMessageslist.- Parameters:
element- A loadingMessages element- Returns:
thisbuilder for use in a chained invocation
-
addLoadingMessages
Adds elements toloadingMessageslist.- Parameters:
elements- An array of loadingMessages elements- Returns:
thisbuilder for use in a chained invocation
-
setLoadingMessages
Sets or replaces all elements forloadingMessageslist.- Parameters:
elements- An iterable of loadingMessages elements- Returns:
thisbuilder for use in a chained invocation
-
addAllLoadingMessages
Adds elements toloadingMessageslist.- Parameters:
elements- An iterable of loadingMessages elements- Returns:
thisbuilder for use in a chained invocation
-
setIconEmoji
Initializes the optional valueiconEmojito iconEmoji.- Parameters:
iconEmoji- The value for iconEmoji,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIconEmoji
Initializes the optional valueiconEmojito iconEmoji.- Parameters:
iconEmoji- The value for iconEmoji- Returns:
thisbuilder for use in a chained invocation
-
setIconUrl
Initializes the optional valueiconUrlto iconUrl.- Parameters:
iconUrl- The value for iconUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIconUrl
Initializes the optional valueiconUrlto iconUrl.- Parameters:
iconUrl- The value for iconUrl- Returns:
thisbuilder for use in a chained invocation
-
setUsername
Initializes the optional valueusernameto username.- Parameters:
username- The value for username,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUsername
Initializes the optional valueusernameto username.- Parameters:
username- The value for username- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSetThreadStatusParams.- Returns:
- An immutable instance of SetThreadStatusParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-