Class SlackEventMessageReplied
java.lang.Object
com.hubspot.slack.client.models.events.SlackEventMessageBase
com.hubspot.slack.client.models.events.AbstractSlackEventMessageReplied
com.hubspot.slack.client.models.events.SlackEventMessageReplied
- All Implemented Interfaces:
HasChannel,SlackEvent
@Generated(from="AbstractSlackEventMessageReplied",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackEventMessageReplied
extends AbstractSlackEventMessageReplied
Immutable implementation of
AbstractSlackEventMessageReplied.
Use the builder to create immutable instances:
SlackEventMessageReplied.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackEventMessageReplied. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackEventMessageReplied.static SlackEventMessageRepliedcopyOf(AbstractSlackEventMessageReplied instance) Creates an immutable copy of aAbstractSlackEventMessageRepliedvalue.booleanThis instance is equal to all instances ofSlackEventMessageRepliedthat have equal attribute values.getTs()getType()inthashCode()Computes a hash code from attributes:type,ts,subtype,attachments,channelId,message.toString()Prints the immutable valueSlackEventMessageRepliedwith attribute values.final SlackEventMessageRepliedwithAttachments(Attachment... elements) Copy the current immutable object with elements that replace the content ofattachments.final SlackEventMessageRepliedwithAttachments(Iterable<? extends Attachment> elements) Copy the current immutable object with elements that replace the content ofattachments.final SlackEventMessageRepliedwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackEventMessageRepliedwithMessage(SlackReplyMessage value) Copy the current immutable object by setting a value for themessageattribute.final SlackEventMessageRepliedwithSubtype(SlackMessageSubtype value) Copy the current immutable object by setting a present value for the optionalsubtypeattribute.final SlackEventMessageRepliedwithSubtype(Optional<? extends SlackMessageSubtype> optional) Copy the current immutable object by setting an optional value for thesubtypeattribute.final SlackEventMessageRepliedCopy the current immutable object by setting a value for thetsattribute.final SlackEventMessageRepliedwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
- Returns:
- The value of the
typeattribute
-
getTs
- Returns:
- The value of the
tsattribute
-
getSubtype
- Specified by:
getSubtypein classSlackEventMessageBase- Returns:
- The value of the
subtypeattribute
-
getAttachments
- Specified by:
getAttachmentsin classSlackEventMessageBase- Returns:
- The value of the
attachmentsattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Specified by:
getChannelIdin classAbstractSlackEventMessageReplied- Returns:
- The value of the
channelIdattribute
-
getMessage
- Specified by:
getMessagein classAbstractSlackEventMessageReplied- Returns:
- The value of the
messageattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
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
-
withSubtype
Copy the current immutable object by setting a present value for the optionalsubtypeattribute.- Parameters:
value- The value for subtype,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSubtype
Copy the current immutable object by setting an optional value for thesubtypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for subtype- 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
-
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
-
withMessage
Copy the current immutable object by setting a value for themessageattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for message- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackEventMessageRepliedthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,ts,subtype,attachments,channelId,message. -
toString
Prints the immutable valueSlackEventMessageRepliedwith attribute values. -
copyOf
Creates an immutable copy of aAbstractSlackEventMessageRepliedvalue. 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 SlackEventMessageReplied instance
-
builder
Creates a builder forSlackEventMessageReplied.SlackEventMessageReplied.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setTs(String) // requiredts.setSubtype(Optional<com.hubspot.slack.client.models.events.SlackMessageSubtype>) // optionalsubtype.addAttachments|addAllAttachments(com.hubspot.slack.client.models.Attachment) //attachmentselements .setChannelId(String) // requiredchannelId.setMessage(com.hubspot.slack.client.models.events.util.SlackReplyMessage) // requiredmessage.build();- Returns:
- A new SlackEventMessageReplied builder
-