Class ChatStartStreamParams
java.lang.Object
com.hubspot.slack.client.methods.params.stream.ChatStartStreamParams
- All Implemented Interfaces:
ChatStartStreamParamsIF,StreamParams
@Generated(from="ChatStartStreamParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatStartStreamParams
extends Object
implements ChatStartStreamParamsIF
Immutable implementation of
ChatStartStreamParamsIF.
Use the builder to create immutable instances:
ChatStartStreamParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatStartStreamParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatStartStreamParams.static ChatStartStreamParamscopyOf(ChatStartStreamParamsIF instance) Creates an immutable copy of aChatStartStreamParamsIFvalue.booleanThis instance is equal to all instances ofChatStartStreamParamsthat have equal attribute values.com.google.common.collect.ImmutableList<StreamChunk> inthashCode()Computes a hash code from attributes:channel,markdownText,chunks,threadTs,recipientUserId,recipientTeamId,taskDisplayMode,iconEmoji,iconUrl,username.toString()Prints the immutable valueChatStartStreamParamswith attribute values.final ChatStartStreamParamswithChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.final ChatStartStreamParamswithChunks(StreamChunk... elements) Copy the current immutable object with elements that replace the content ofchunks.final ChatStartStreamParamswithChunks(Iterable<? extends StreamChunk> elements) Copy the current immutable object with elements that replace the content ofchunks.final ChatStartStreamParamswithIconEmoji(String value) Copy the current immutable object by setting a present value for the optionaliconEmojiattribute.final ChatStartStreamParamswithIconEmoji(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconEmojiattribute.final ChatStartStreamParamswithIconUrl(String value) Copy the current immutable object by setting a present value for the optionaliconUrlattribute.final ChatStartStreamParamswithIconUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconUrlattribute.final ChatStartStreamParamswithMarkdownText(String value) Copy the current immutable object by setting a present value for the optionalmarkdownTextattribute.final ChatStartStreamParamswithMarkdownText(Optional<String> optional) Copy the current immutable object by setting an optional value for themarkdownTextattribute.final ChatStartStreamParamswithRecipientTeamId(String value) Copy the current immutable object by setting a present value for the optionalrecipientTeamIdattribute.final ChatStartStreamParamswithRecipientTeamId(Optional<String> optional) Copy the current immutable object by setting an optional value for therecipientTeamIdattribute.final ChatStartStreamParamswithRecipientUserId(String value) Copy the current immutable object by setting a present value for the optionalrecipientUserIdattribute.final ChatStartStreamParamswithRecipientUserId(Optional<String> optional) Copy the current immutable object by setting an optional value for therecipientUserIdattribute.final ChatStartStreamParamswithTaskDisplayMode(String value) Copy the current immutable object by setting a present value for the optionaltaskDisplayModeattribute.final ChatStartStreamParamswithTaskDisplayMode(Optional<String> optional) Copy the current immutable object by setting an optional value for thetaskDisplayModeattribute.final ChatStartStreamParamswithThreadTs(String value) Copy the current immutable object by setting a value for thethreadTsattribute.final ChatStartStreamParamswithUsername(String value) Copy the current immutable object by setting a present value for the optionalusernameattribute.final ChatStartStreamParamswithUsername(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.stream.ChatStartStreamParamsIF
checkNotBothPresentMethods inherited from interface com.hubspot.slack.client.methods.params.stream.StreamParams
checkMutuallyExclusive
-
Method Details
-
getChannel
- Specified by:
getChannelin interfaceStreamParams- Returns:
- The value of the
channelattribute
-
getMarkdownText
- Specified by:
getMarkdownTextin interfaceStreamParams- Returns:
- The value of the
markdownTextattribute
-
getChunks
- Specified by:
getChunksin interfaceStreamParams- Returns:
- The value of the
chunksattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceChatStartStreamParamsIF- Returns:
- The value of the
threadTsattribute
-
getRecipientUserId
- Specified by:
getRecipientUserIdin interfaceChatStartStreamParamsIF- Returns:
- The value of the
recipientUserIdattribute
-
getRecipientTeamId
- Specified by:
getRecipientTeamIdin interfaceChatStartStreamParamsIF- Returns:
- The value of the
recipientTeamIdattribute
-
getTaskDisplayMode
- Specified by:
getTaskDisplayModein interfaceChatStartStreamParamsIF- Returns:
- The value of the
taskDisplayModeattribute
-
getIconEmoji
- Specified by:
getIconEmojiin interfaceChatStartStreamParamsIF- Returns:
- The value of the
iconEmojiattribute
-
getIconUrl
- Specified by:
getIconUrlin interfaceChatStartStreamParamsIF- Returns:
- The value of the
iconUrlattribute
-
getUsername
- Specified by:
getUsernamein interfaceChatStartStreamParamsIF- Returns:
- The value of the
usernameattribute
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy or the
thisobject
-
withMarkdownText
Copy the current immutable object by setting a present value for the optionalmarkdownTextattribute.- Parameters:
value- The value for markdownText,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMarkdownText
Copy the current immutable object by setting an optional value for themarkdownTextattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for markdownText- Returns:
- A modified copy or
thisif not changed
-
withChunks
Copy the current immutable object with elements that replace the content ofchunks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withChunks
Copy the current immutable object with elements that replace the content ofchunks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of chunks elements to set- Returns:
- A modified copy or
thisif not changed
-
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
-
withRecipientUserId
Copy the current immutable object by setting a present value for the optionalrecipientUserIdattribute.- Parameters:
value- The value for recipientUserId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withRecipientUserId
Copy the current immutable object by setting an optional value for therecipientUserIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for recipientUserId- Returns:
- A modified copy or
thisif not changed
-
withRecipientTeamId
Copy the current immutable object by setting a present value for the optionalrecipientTeamIdattribute.- Parameters:
value- The value for recipientTeamId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withRecipientTeamId
Copy the current immutable object by setting an optional value for therecipientTeamIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for recipientTeamId- Returns:
- A modified copy or
thisif not changed
-
withTaskDisplayMode
Copy the current immutable object by setting a present value for the optionaltaskDisplayModeattribute.- Parameters:
value- The value for taskDisplayMode,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTaskDisplayMode
Copy the current immutable object by setting an optional value for thetaskDisplayModeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for taskDisplayMode- 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 ofChatStartStreamParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channel,markdownText,chunks,threadTs,recipientUserId,recipientTeamId,taskDisplayMode,iconEmoji,iconUrl,username. -
toString
Prints the immutable valueChatStartStreamParamswith attribute values. -
copyOf
Creates an immutable copy of aChatStartStreamParamsIFvalue. 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 ChatStartStreamParams instance
-
builder
Creates a builder forChatStartStreamParams.ChatStartStreamParams.builder() .setChannel(String) // requiredchannel.setMarkdownText(Optional<String>) // optionalmarkdownText.addChunks|addAllChunks(com.hubspot.slack.client.methods.params.stream.chunks.StreamChunk) //chunkselements .setThreadTs(String) // requiredthreadTs.setRecipientUserId(Optional<String>) // optionalrecipientUserId.setRecipientTeamId(Optional<String>) // optionalrecipientTeamId.setTaskDisplayMode(Optional<String>) // optionaltaskDisplayMode.setIconEmoji(Optional<String>) // optionaliconEmoji.setIconUrl(Optional<String>) // optionaliconUrl.setUsername(Optional<String>) // optionalusername.build();- Returns:
- A new ChatStartStreamParams builder
-