Class SlashCommandResponseParams
java.lang.Object
com.hubspot.slack.client.methods.params.chat.AbstractChatMessageParams
com.hubspot.slack.client.methods.params.chat.AbstractSlashCommandResponseParams
com.hubspot.slack.client.methods.params.chat.SlashCommandResponseParams
- All Implemented Interfaces:
HasChannel,MessageParams
@Generated(from="AbstractSlashCommandResponseParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlashCommandResponseParams
extends AbstractSlashCommandResponseParams
Immutable implementation of
AbstractSlashCommandResponseParams.
Use the builder to create immutable instances:
SlashCommandResponseParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlashCommandResponseParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlashCommandResponseParams.static SlashCommandResponseParamscopyOf(AbstractSlashCommandResponseParams instance) Creates an immutable copy of aAbstractSlashCommandResponseParamsvalue.booleanThis instance is equal to all instances ofSlashCommandResponseParamsthat have equal attribute values.getText()inthashCode()Computes a hash code from attributes:attachments,blocks,channelId,text,threadTs,username,asUser,iconEmoji,iconUrl,linkNames,unfurlLinks,unfurlMedia,replyBroadcast,responseType.toString()Prints the immutable valueSlashCommandResponseParamswith attribute values.withAsUser(Boolean value) Copy the current immutable object by setting a present value for the optionalasUserattribute.withAsUser(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theasUserattribute.withAttachments(Attachment... elements) Copy the current immutable object with elements that replace the content ofattachments.withAttachments(Iterable<? extends Attachment> elements) Copy the current immutable object with elements that replace the content ofattachments.withBlocks(Block... elements) Copy the current immutable object with elements that replace the content ofblocks.withBlocks(Iterable<? extends Block> elements) Copy the current immutable object with elements that replace the content ofblocks.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withIconEmoji(String value) Copy the current immutable object by setting a present value for the optionaliconEmojiattribute.withIconEmoji(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconEmojiattribute.withIconUrl(String value) Copy the current immutable object by setting a present value for the optionaliconUrlattribute.withIconUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconUrlattribute.withLinkNames(Boolean value) Copy the current immutable object by setting a present value for the optionallinkNamesattribute.withLinkNames(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thelinkNamesattribute.withReplyBroadcast(Boolean value) Copy the current immutable object by setting a present value for the optionalreplyBroadcastattribute.withReplyBroadcast(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thereplyBroadcastattribute.Copy the current immutable object by setting a value for theresponseTypeattribute.Copy the current immutable object by setting a present value for the optionaltextattribute.Copy the current immutable object by setting an optional value for thetextattribute.withThreadTs(String value) Copy the current immutable object by setting a present value for the optionalthreadTsattribute.withThreadTs(Optional<String> optional) Copy the current immutable object by setting an optional value for thethreadTsattribute.withUnfurlLinks(Boolean value) Copy the current immutable object by setting a present value for the optionalunfurlLinksattribute.withUnfurlLinks(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theunfurlLinksattribute.withUnfurlMedia(Boolean value) Copy the current immutable object by setting a present value for the optionalunfurlMediaattribute.withUnfurlMedia(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theunfurlMediaattribute.withUsername(String value) Copy the current immutable object by setting a present value for the optionalusernameattribute.withUsername(Optional<String> optional) Copy the current immutable object by setting an optional value for theusernameattribute.Methods inherited from class com.hubspot.slack.client.methods.params.chat.AbstractChatMessageParams
check
-
Method Details
-
getAttachments
- Returns:
- The value of the
attachmentsattribute
-
getBlocks
- Returns:
- The value of the
blocksattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Specified by:
getChannelIdin classAbstractChatMessageParams- Returns:
- The value of the
channelIdattribute
-
getText
- Specified by:
getTextin interfaceMessageParams- Specified by:
getTextin classAbstractChatMessageParams- Returns:
- The value of the
textattribute
-
getThreadTs
- Specified by:
getThreadTsin classAbstractChatMessageParams- Returns:
- The value of the
threadTsattribute
-
getUsername
- Specified by:
getUsernamein classAbstractChatMessageParams- Returns:
- The value of the
usernameattribute
-
getAsUser
- Specified by:
getAsUserin classAbstractChatMessageParams- Returns:
- The value of the
asUserattribute
-
getIconEmoji
- Specified by:
getIconEmojiin classAbstractChatMessageParams- Returns:
- The value of the
iconEmojiattribute
-
getIconUrl
- Specified by:
getIconUrlin classAbstractChatMessageParams- Returns:
- The value of the
iconUrlattribute
-
getLinkNames
- Specified by:
getLinkNamesin classAbstractChatMessageParams- Returns:
- The value of the
linkNamesattribute
-
getUnfurlLinks
- Specified by:
getUnfurlLinksin classAbstractChatMessageParams- Returns:
- The value of the
unfurlLinksattribute
-
getUnfurlMedia
- Specified by:
getUnfurlMediain classAbstractChatMessageParams- Returns:
- The value of the
unfurlMediaattribute
-
getReplyBroadcast
- Specified by:
getReplyBroadcastin classAbstractChatMessageParams- Returns:
- The value of the
replyBroadcastattribute
-
getResponseType
- Overrides:
getResponseTypein classAbstractSlashCommandResponseParams- Returns:
- The value of the
responseTypeattribute
-
withAttachments
Copy the current immutable object with elements that replace the content ofattachments.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAttachments
Copy the current immutable object with elements that replace the content ofattachments. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of attachments elements to set- Returns:
- A modified copy or
thisif not changed
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of blocks elements to set- Returns:
- A modified copy or
thisif not changed
-
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
-
withText
Copy the current immutable object by setting a present value for the optionaltextattribute.- Parameters:
value- The value for text,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withText
Copy the current immutable object by setting an optional value for thetextattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for text- Returns:
- A modified copy or
thisif not changed
-
withThreadTs
Copy the current immutable object by setting a present value for the optionalthreadTsattribute.- Parameters:
value- The value for threadTs,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThreadTs
Copy the current immutable object by setting an optional value for thethreadTsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for threadTs- 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
-
withAsUser
Copy the current immutable object by setting a present value for the optionalasUserattribute.- Parameters:
value- The value for asUser,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAsUser
Copy the current immutable object by setting an optional value for theasUserattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for asUser- 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
-
withLinkNames
Copy the current immutable object by setting a present value for the optionallinkNamesattribute.- Parameters:
value- The value for linkNames,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLinkNames
Copy the current immutable object by setting an optional value for thelinkNamesattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for linkNames- Returns:
- A modified copy or
thisif not changed
-
withUnfurlLinks
Copy the current immutable object by setting a present value for the optionalunfurlLinksattribute.- Parameters:
value- The value for unfurlLinks,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUnfurlLinks
Copy the current immutable object by setting an optional value for theunfurlLinksattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for unfurlLinks- Returns:
- A modified copy or
thisif not changed
-
withUnfurlMedia
Copy the current immutable object by setting a present value for the optionalunfurlMediaattribute.- Parameters:
value- The value for unfurlMedia,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUnfurlMedia
Copy the current immutable object by setting an optional value for theunfurlMediaattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for unfurlMedia- Returns:
- A modified copy or
thisif not changed
-
withReplyBroadcast
Copy the current immutable object by setting a present value for the optionalreplyBroadcastattribute.- Parameters:
value- The value for replyBroadcast,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withReplyBroadcast
Copy the current immutable object by setting an optional value for thereplyBroadcastattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for replyBroadcast- Returns:
- A modified copy or
thisif not changed
-
withResponseType
Copy the current immutable object by setting a value for theresponseTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for responseType- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlashCommandResponseParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:attachments,blocks,channelId,text,threadTs,username,asUser,iconEmoji,iconUrl,linkNames,unfurlLinks,unfurlMedia,replyBroadcast,responseType. -
toString
Prints the immutable valueSlashCommandResponseParamswith attribute values. -
copyOf
Creates an immutable copy of aAbstractSlashCommandResponseParamsvalue. 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 SlashCommandResponseParams instance
-
builder
Creates a builder forSlashCommandResponseParams.SlashCommandResponseParams.builder() .addAttachments|addAllAttachments(com.hubspot.slack.client.models.Attachment) //attachmentselements .addBlocks|addAllBlocks(com.hubspot.slack.client.models.blocks.Block) //blockselements .setChannelId(String) // requiredchannelId.setText(Optional<String>) // optionaltext.setThreadTs(Optional<String>) // optionalthreadTs.setUsername(Optional<String>) // optionalusername.setAsUser(Optional<Boolean>) // optionalasUser.setIconEmoji(Optional<String>) // optionaliconEmoji.setIconUrl(Optional<String>) // optionaliconUrl.setLinkNames(Optional<Boolean>) // optionallinkNames.setUnfurlLinks(Optional<Boolean>) // optionalunfurlLinks.setUnfurlMedia(Optional<Boolean>) // optionalunfurlMedia.setReplyBroadcast(Optional<Boolean>) // optionalreplyBroadcast.setResponseType(com.hubspot.slack.client.models.TopLevelMessageResponseType) // optionalresponseType.build();- Returns:
- A new SlashCommandResponseParams builder
-