Class ChatUpdateMessageParams
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatUpdateMessageParams
- All Implemented Interfaces:
HasChannel,ChatUpdateMessageParamsIF,MessageParams
@Generated(from="ChatUpdateMessageParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatUpdateMessageParams
extends Object
implements ChatUpdateMessageParamsIF
Immutable implementation of
ChatUpdateMessageParamsIF.
Use the builder to create immutable instances:
ChatUpdateMessageParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatUpdateMessageParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatUpdateMessageParams.static ChatUpdateMessageParamscopyOf(ChatUpdateMessageParamsIF instance) Creates an immutable copy of aChatUpdateMessageParamsIFvalue.booleanThis instance is equal to all instances ofChatUpdateMessageParamsthat have equal attribute values.getParse()getText()getTs()inthashCode()Computes a hash code from attributes:attachments,blocks,channelId,text,ts,asUser,shouldLinkNames,parse.booleantoString()Prints the immutable valueChatUpdateMessageParamswith attribute values.final ChatUpdateMessageParamswithAsUser(Boolean value) Copy the current immutable object by setting a present value for the optionalasUserattribute.final ChatUpdateMessageParamswithAsUser(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theasUserattribute.final ChatUpdateMessageParamswithAttachments(Attachment... elements) Copy the current immutable object with elements that replace the content ofattachments.final ChatUpdateMessageParamswithAttachments(Iterable<? extends Attachment> elements) Copy the current immutable object with elements that replace the content ofattachments.final ChatUpdateMessageParamswithBlocks(Block... elements) Copy the current immutable object with elements that replace the content ofblocks.final ChatUpdateMessageParamswithBlocks(Iterable<? extends Block> elements) Copy the current immutable object with elements that replace the content ofblocks.final ChatUpdateMessageParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ChatUpdateMessageParamsCopy the current immutable object by setting a value for theparseattribute.final ChatUpdateMessageParamswithShouldLinkNames(boolean value) Copy the current immutable object by setting a value for theshouldLinkNamesattribute.final ChatUpdateMessageParamsCopy the current immutable object by setting a present value for the optionaltextattribute.final ChatUpdateMessageParamsCopy the current immutable object by setting an optional value for thetextattribute.final ChatUpdateMessageParamsCopy the current immutable object by setting a value for thetsattribute.Methods inherited from interface com.hubspot.slack.client.methods.params.chat.ChatUpdateMessageParamsIF
check
-
Method Details
-
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 interfaceChatUpdateMessageParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getText
- Specified by:
getTextin interfaceChatUpdateMessageParamsIF- Specified by:
getTextin interfaceMessageParams- Returns:
- The value of the
textattribute
-
getTs
- Specified by:
getTsin interfaceChatUpdateMessageParamsIF- Returns:
- The value of the
tsattribute
-
getAsUser
- Specified by:
getAsUserin interfaceChatUpdateMessageParamsIF- Returns:
- The value of the
asUserattribute
-
shouldLinkNames
public boolean shouldLinkNames()- Specified by:
shouldLinkNamesin interfaceChatUpdateMessageParamsIF- Returns:
- The value of the
shouldLinkNamesattribute
-
getParse
- Specified by:
getParsein interfaceChatUpdateMessageParamsIF- Returns:
- The value of the
parseattribute
-
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
-
withTs
Copy the current immutable object by setting a value for thetsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ts- Returns:
- A modified copy or the
thisobject
-
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
-
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
-
withParse
Copy the current immutable object by setting a value for theparseattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for parse- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChatUpdateMessageParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:attachments,blocks,channelId,text,ts,asUser,shouldLinkNames,parse. -
toString
Prints the immutable valueChatUpdateMessageParamswith attribute values. -
copyOf
Creates an immutable copy of aChatUpdateMessageParamsIFvalue. 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 ChatUpdateMessageParams instance
-
builder
Creates a builder forChatUpdateMessageParams.ChatUpdateMessageParams.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.setTs(String) // requiredts.setAsUser(Optional<Boolean>) // optionalasUser.setShouldLinkNames(boolean) // optionalshouldLinkNames.setParse(String) // optionalparse.build();- Returns:
- A new ChatUpdateMessageParams builder
-