Class ChatPostEphemeralMessageParams
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatPostEphemeralMessageParams
- All Implemented Interfaces:
HasChannel,ChatPostEphemeralMessageParamsIF,MessageParams
@Generated(from="ChatPostEphemeralMessageParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatPostEphemeralMessageParams
extends Object
implements ChatPostEphemeralMessageParamsIF
Immutable implementation of
ChatPostEphemeralMessageParamsIF.
Use the builder to create immutable instances:
ChatPostEphemeralMessageParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatPostEphemeralMessageParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatPostEphemeralMessageParams.copyOf(ChatPostEphemeralMessageParamsIF instance) Creates an immutable copy of aChatPostEphemeralMessageParamsIFvalue.booleanThis instance is equal to all instances ofChatPostEphemeralMessageParamsthat have equal attribute values.booleangetText()inthashCode()Computes a hash code from attributes:text,attachments,blocks,channelId,userToSendTo,sendAsUser,threadTs,shouldLinkNames,parseMode.toString()Prints the immutable valueChatPostEphemeralMessageParamswith attribute values.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.withParseMode(String value) Copy the current immutable object by setting a value for theparseModeattribute.withSendAsUser(Boolean value) Copy the current immutable object by setting a present value for the optionalsendAsUserattribute.withSendAsUser(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thesendAsUserattribute.withShouldLinkNames(boolean value) Copy the current immutable object by setting a value for theshouldLinkNamesattribute.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.withUserToSendTo(String value) Copy the current immutable object by setting a value for theuserToSendToattribute.Methods inherited from interface com.hubspot.slack.client.methods.params.chat.ChatPostEphemeralMessageParamsIF
check
-
Method Details
-
getText
- Specified by:
getTextin interfaceMessageParams- Returns:
- The value of the
textattribute
-
getAttachments
- Specified by:
getAttachmentsin interfaceMessageParams- Returns:
- The value of the
attachmentsattribute
-
getBlocks
- Specified by:
getBlocksin interfaceMessageParams- Returns:
- The value of the
blocksattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceChatPostEphemeralMessageParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getUserToSendTo
- Specified by:
getUserToSendToin interfaceChatPostEphemeralMessageParamsIF- Returns:
- The value of the
userToSendToattribute
-
getSendAsUser
- Specified by:
getSendAsUserin interfaceChatPostEphemeralMessageParamsIF- Returns:
- The value of the
sendAsUserattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceChatPostEphemeralMessageParamsIF- Returns:
- The value of the
threadTsattribute
-
getShouldLinkNames
public boolean getShouldLinkNames()- Specified by:
getShouldLinkNamesin interfaceChatPostEphemeralMessageParamsIF- Returns:
- The value of the
shouldLinkNamesattribute
-
getParseMode
- Specified by:
getParseModein interfaceChatPostEphemeralMessageParamsIF- Returns:
- The value of the
parseModeattribute
-
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
-
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
public final ChatPostEphemeralMessageParams withAttachments(Iterable<? extends Attachment> elements) 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
-
withUserToSendTo
Copy the current immutable object by setting a value for theuserToSendToattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userToSendTo- Returns:
- A modified copy or the
thisobject
-
withSendAsUser
Copy the current immutable object by setting a present value for the optionalsendAsUserattribute.- Parameters:
value- The value for sendAsUser,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSendAsUser
Copy the current immutable object by setting an optional value for thesendAsUserattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for sendAsUser- 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
-
withShouldLinkNames
Copy the current immutable object by setting a value for theshouldLinkNamesattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for shouldLinkNames- Returns:
- A modified copy or the
thisobject
-
withParseMode
Copy the current immutable object by setting a value for theparseModeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for parseMode- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChatPostEphemeralMessageParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:text,attachments,blocks,channelId,userToSendTo,sendAsUser,threadTs,shouldLinkNames,parseMode. -
toString
Prints the immutable valueChatPostEphemeralMessageParamswith attribute values. -
copyOf
Creates an immutable copy of aChatPostEphemeralMessageParamsIFvalue. 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 ChatPostEphemeralMessageParams instance
-
builder
Creates a builder forChatPostEphemeralMessageParams.ChatPostEphemeralMessageParams.builder() .setText(Optional<String>) // optionaltext.addAttachments|addAllAttachments(com.hubspot.slack.client.models.Attachment) //attachmentselements .addBlocks|addAllBlocks(com.hubspot.slack.client.models.blocks.Block) //blockselements .setChannelId(String) // requiredchannelId.setUserToSendTo(String) // requireduserToSendTo.setSendAsUser(Optional<Boolean>) // optionalsendAsUser.setThreadTs(Optional<String>) // optionalthreadTs.setShouldLinkNames(boolean) // optionalshouldLinkNames.setParseMode(String) // optionalparseMode.build();- Returns:
- A new ChatPostEphemeralMessageParams builder
-