Class SetThreadStatusParams
java.lang.Object
com.hubspot.slack.client.methods.params.assistant.SetThreadStatusParams
- All Implemented Interfaces:
HasChannel,SetThreadStatusParamsIF
@Generated(from="SetThreadStatusParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SetThreadStatusParams
extends Object
implements SetThreadStatusParamsIF
Immutable implementation of
SetThreadStatusParamsIF.
Use the builder to create immutable instances:
SetThreadStatusParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSetThreadStatusParams. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.assistant.SetThreadStatusParamsIF
MAX_LOADING_MESSAGES -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSetThreadStatusParams.static SetThreadStatusParamscopyOf(SetThreadStatusParamsIF instance) Creates an immutable copy of aSetThreadStatusParamsIFvalue.booleanThis instance is equal to all instances ofSetThreadStatusParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelId,channel,status,threadTs,loadingMessages,iconEmoji,iconUrl,username.toString()Prints the immutable valueSetThreadStatusParamswith attribute values.final SetThreadStatusParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SetThreadStatusParamswithIconEmoji(String value) Copy the current immutable object by setting a present value for the optionaliconEmojiattribute.final SetThreadStatusParamswithIconEmoji(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconEmojiattribute.final SetThreadStatusParamswithIconUrl(String value) Copy the current immutable object by setting a present value for the optionaliconUrlattribute.final SetThreadStatusParamswithIconUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconUrlattribute.final SetThreadStatusParamswithLoadingMessages(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofloadingMessages.final SetThreadStatusParamswithLoadingMessages(String... elements) Copy the current immutable object with elements that replace the content ofloadingMessages.final SetThreadStatusParamswithStatus(String value) Copy the current immutable object by setting a value for thestatusattribute.final SetThreadStatusParamswithThreadTs(String value) Copy the current immutable object by setting a value for thethreadTsattribute.final SetThreadStatusParamswithUsername(String value) Copy the current immutable object by setting a present value for the optionalusernameattribute.final SetThreadStatusParamswithUsername(Optional<String> optional) Copy the current immutable object by setting an optional value for theusernameattribute.Methods inherited from interface com.hubspot.slack.client.methods.params.assistant.SetThreadStatusParamsIF
checkIconNotBothPresent, checkLoadingMessagesWithinLimit
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getChannel
- Specified by:
getChannelin interfaceSetThreadStatusParamsIF- Returns:
- The computed-at-construction value of the
channelattribute
-
getStatus
- Specified by:
getStatusin interfaceSetThreadStatusParamsIF- Returns:
- The value of the
statusattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceSetThreadStatusParamsIF- Returns:
- The value of the
threadTsattribute
-
getLoadingMessages
- Specified by:
getLoadingMessagesin interfaceSetThreadStatusParamsIF- Returns:
- The value of the
loadingMessagesattribute
-
getIconEmoji
- Specified by:
getIconEmojiin interfaceSetThreadStatusParamsIF- Returns:
- The value of the
iconEmojiattribute
-
getIconUrl
- Specified by:
getIconUrlin interfaceSetThreadStatusParamsIF- Returns:
- The value of the
iconUrlattribute
-
getUsername
- Specified by:
getUsernamein interfaceSetThreadStatusParamsIF- Returns:
- The value of the
usernameattribute
-
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
-
withStatus
Copy the current immutable object by setting a value for thestatusattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status- Returns:
- A modified copy or the
thisobject
-
withThreadTs
Copy the current immutable object by setting a value for thethreadTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for threadTs- Returns:
- A modified copy or the
thisobject
-
withLoadingMessages
Copy the current immutable object with elements that replace the content ofloadingMessages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLoadingMessages
Copy the current immutable object with elements that replace the content ofloadingMessages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of loadingMessages elements to set- Returns:
- A modified copy or
thisif not changed
-
withIconEmoji
Copy the current immutable object by setting a present value for the optionaliconEmojiattribute.- Parameters:
value- The value for iconEmoji,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIconEmoji
Copy the current immutable object by setting an optional value for theiconEmojiattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for iconEmoji- Returns:
- A modified copy or
thisif not changed
-
withIconUrl
Copy the current immutable object by setting a present value for the optionaliconUrlattribute.- Parameters:
value- The value for iconUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIconUrl
Copy the current immutable object by setting an optional value for theiconUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for iconUrl- Returns:
- A modified copy or
thisif not changed
-
withUsername
Copy the current immutable object by setting a present value for the optionalusernameattribute.- Parameters:
value- The value for username,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUsername
Copy the current immutable object by setting an optional value for theusernameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for username- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSetThreadStatusParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,channel,status,threadTs,loadingMessages,iconEmoji,iconUrl,username. -
toString
Prints the immutable valueSetThreadStatusParamswith attribute values. -
copyOf
Creates an immutable copy of aSetThreadStatusParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SetThreadStatusParams instance
-
builder
Creates a builder forSetThreadStatusParams.SetThreadStatusParams.builder() .setChannelId(String) // requiredchannelId.setStatus(String) // requiredstatus.setThreadTs(String) // requiredthreadTs.addLoadingMessages|addAllLoadingMessages(String) //loadingMessageselements .setIconEmoji(Optional<String>) // optionaliconEmoji.setIconUrl(Optional<String>) // optionaliconUrl.setUsername(Optional<String>) // optionalusername.build();- Returns:
- A new SetThreadStatusParams builder
-