Class SlackEventMessageDeleted
java.lang.Object
com.hubspot.slack.client.models.events.SlackEventMessageBase
com.hubspot.slack.client.models.events.AbstractSlackEventMessageDeleted
com.hubspot.slack.client.models.events.SlackEventMessageDeleted
- All Implemented Interfaces:
HasChannel,SlackEvent
@Generated(from="AbstractSlackEventMessageDeleted",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackEventMessageDeleted
extends AbstractSlackEventMessageDeleted
Immutable implementation of
AbstractSlackEventMessageDeleted.
Use the builder to create immutable instances:
SlackEventMessageDeleted.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackEventMessageDeleted. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackEventMessageDeleted.static SlackEventMessageDeletedcopyOf(AbstractSlackEventMessageDeleted instance) Creates an immutable copy of aAbstractSlackEventMessageDeletedvalue.booleanThis instance is equal to all instances ofSlackEventMessageDeletedthat have equal attribute values.getTs()getType()inthashCode()Computes a hash code from attributes:type,ts,subtype,attachments,channelId,previousMessage,hidden,deletedTs,eventTs.booleanisHidden()toString()Prints the immutable valueSlackEventMessageDeletedwith attribute values.final SlackEventMessageDeletedwithAttachments(Attachment... elements) Copy the current immutable object with elements that replace the content ofattachments.final SlackEventMessageDeletedwithAttachments(Iterable<? extends Attachment> elements) Copy the current immutable object with elements that replace the content ofattachments.final SlackEventMessageDeletedwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackEventMessageDeletedwithDeletedTs(String value) Copy the current immutable object by setting a value for thedeletedTsattribute.final SlackEventMessageDeletedwithEventTs(String value) Copy the current immutable object by setting a value for theeventTsattribute.final SlackEventMessageDeletedwithHidden(boolean value) Copy the current immutable object by setting a value for thehiddenattribute.final SlackEventMessageDeletedwithPreviousMessage(LiteMessage value) Copy the current immutable object by setting a present value for the optionalpreviousMessageattribute.final SlackEventMessageDeletedwithPreviousMessage(Optional<? extends LiteMessage> optional) Copy the current immutable object by setting an optional value for thepreviousMessageattribute.final SlackEventMessageDeletedwithSubtype(SlackMessageSubtype value) Copy the current immutable object by setting a present value for the optionalsubtypeattribute.final SlackEventMessageDeletedwithSubtype(Optional<? extends SlackMessageSubtype> optional) Copy the current immutable object by setting an optional value for thesubtypeattribute.final SlackEventMessageDeletedCopy the current immutable object by setting a value for thetsattribute.final SlackEventMessageDeletedwithType(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 classAbstractSlackEventMessageDeleted- Returns:
- The value of the
channelIdattribute
-
getPreviousMessage
- Specified by:
getPreviousMessagein classAbstractSlackEventMessageDeleted- Returns:
- The value of the
previousMessageattribute
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin classAbstractSlackEventMessageDeleted- Returns:
- The value of the
hiddenattribute
-
getDeletedTs
- Specified by:
getDeletedTsin classAbstractSlackEventMessageDeleted- Returns:
- The value of the
deletedTsattribute
-
getEventTs
- Specified by:
getEventTsin classAbstractSlackEventMessageDeleted- Returns:
- The value of the
eventTsattribute
-
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
-
withPreviousMessage
Copy the current immutable object by setting a present value for the optionalpreviousMessageattribute.- Parameters:
value- The value for previousMessage,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPreviousMessage
Copy the current immutable object by setting an optional value for thepreviousMessageattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for previousMessage- Returns:
- A modified copy or
thisif not changed
-
withHidden
Copy the current immutable object by setting a value for thehiddenattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hidden- Returns:
- A modified copy or the
thisobject
-
withDeletedTs
Copy the current immutable object by setting a value for thedeletedTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deletedTs- Returns:
- A modified copy or the
thisobject
-
withEventTs
Copy the current immutable object by setting a value for theeventTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for eventTs- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackEventMessageDeletedthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,ts,subtype,attachments,channelId,previousMessage,hidden,deletedTs,eventTs. -
toString
Prints the immutable valueSlackEventMessageDeletedwith attribute values. -
copyOf
Creates an immutable copy of aAbstractSlackEventMessageDeletedvalue. 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 SlackEventMessageDeleted instance
-
builder
Creates a builder forSlackEventMessageDeleted.SlackEventMessageDeleted.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.setPreviousMessage(Optional<com.hubspot.slack.client.models.LiteMessage>) // optionalpreviousMessage.setHidden(boolean) // requiredhidden.setDeletedTs(String) // requireddeletedTs.setEventTs(String) // requiredeventTs.build();- Returns:
- A new SlackEventMessageDeleted builder
-