Class ChatScheduleMessageParams
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatScheduleMessageParams
- All Implemented Interfaces:
HasChannel,ChatScheduleMessageParamsIF,MessageParams
@Generated(from="ChatScheduleMessageParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatScheduleMessageParams
extends Object
implements ChatScheduleMessageParamsIF
Immutable implementation of
ChatScheduleMessageParamsIF.
Use the builder to create immutable instances:
ChatScheduleMessageParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatScheduleMessageParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatScheduleMessageParams.static ChatScheduleMessageParamscopyOf(ChatScheduleMessageParamsIF instance) Creates an immutable copy of aChatScheduleMessageParamsIFvalue.booleanThis instance is equal to all instances ofChatScheduleMessageParamsthat have equal attribute values.longbooleangetText()inthashCode()Computes a hash code from attributes:text,attachments,blocks,channelId,postAt,shouldLinkNames,parseMode,threadTs,unfurlLinks,unfurlMedia.toString()Prints the immutable valueChatScheduleMessageParamswith 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.withPostAt(long value) Copy the current immutable object by setting a value for thepostAtattribute.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 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.Methods inherited from interface com.hubspot.slack.client.methods.params.chat.ChatScheduleMessageParamsIF
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 interfaceChatScheduleMessageParamsIF- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getPostAt
public long getPostAt()- Specified by:
getPostAtin interfaceChatScheduleMessageParamsIF- Returns:
- The value of the
postAtattribute
-
getShouldLinkNames
public boolean getShouldLinkNames()- Specified by:
getShouldLinkNamesin interfaceChatScheduleMessageParamsIF- Returns:
- The value of the
shouldLinkNamesattribute
-
getParseMode
- Specified by:
getParseModein interfaceChatScheduleMessageParamsIF- Returns:
- The value of the
parseModeattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceChatScheduleMessageParamsIF- Returns:
- The value of the
threadTsattribute
-
getUnfurlLinks
- Specified by:
getUnfurlLinksin interfaceChatScheduleMessageParamsIF- Returns:
- The value of the
unfurlLinksattribute
-
getUnfurlMedia
- Specified by:
getUnfurlMediain interfaceChatScheduleMessageParamsIF- Returns:
- The value of the
unfurlMediaattribute
-
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
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
-
withPostAt
Copy the current immutable object by setting a value for thepostAtattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for postAt- Returns:
- A modified copy or the
thisobject
-
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
-
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
-
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
-
equals
This instance is equal to all instances ofChatScheduleMessageParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:text,attachments,blocks,channelId,postAt,shouldLinkNames,parseMode,threadTs,unfurlLinks,unfurlMedia. -
toString
Prints the immutable valueChatScheduleMessageParamswith attribute values. -
copyOf
Creates an immutable copy of aChatScheduleMessageParamsIFvalue. 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 ChatScheduleMessageParams instance
-
builder
Creates a builder forChatScheduleMessageParams.ChatScheduleMessageParams.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.setPostAt(long) // requiredpostAt.setShouldLinkNames(boolean) // optionalshouldLinkNames.setParseMode(String) // optionalparseMode.setThreadTs(String) // optionalthreadTs.setUnfurlLinks(Optional<Boolean>) // optionalunfurlLinks.setUnfurlMedia(Optional<Boolean>) // optionalunfurlMedia.build();- Returns:
- A new ChatScheduleMessageParams builder
-