Class SlackLinkSharedEvent
java.lang.Object
com.hubspot.slack.client.models.events.links.SlackLinkSharedEvent
- All Implemented Interfaces:
SlackLinkSharedEventIF,SlackEvent
@Generated(from="SlackLinkSharedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackLinkSharedEvent
extends Object
implements SlackLinkSharedEventIF
Immutable implementation of
SlackLinkSharedEventIF.
Use the builder to create immutable instances:
SlackLinkSharedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackLinkSharedEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackLinkSharedEvent.Builderbuilder()Creates a builder forSlackLinkSharedEvent.static SlackLinkSharedEventcopyOf(SlackLinkSharedEventIF instance) Creates an immutable copy of aSlackLinkSharedEventIFvalue.booleanThis instance is equal to all instances ofSlackLinkSharedEventthat have equal attribute values.getLinks()getType()inthashCode()Computes a hash code from attributes:type,channelId,userId,messageTs,threadTs,links.toString()Prints the immutable valueSlackLinkSharedEventwith attribute values.final SlackLinkSharedEventwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SlackLinkSharedEventCopy the current immutable object with elements that replace the content oflinks.final SlackLinkSharedEventCopy the current immutable object with elements that replace the content oflinks.final SlackLinkSharedEventwithMessageTs(String value) Copy the current immutable object by setting a value for themessageTsattribute.final SlackLinkSharedEventwithThreadTs(String value) Copy the current immutable object by setting a present value for the optionalthreadTsattribute.final SlackLinkSharedEventwithThreadTs(Optional<String> optional) Copy the current immutable object by setting an optional value for thethreadTsattribute.final SlackLinkSharedEventwithType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.final SlackLinkSharedEventwithUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.Methods inherited from interface com.hubspot.slack.client.models.events.links.SlackLinkSharedEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceSlackLinkSharedEventIF- Returns:
- The value of the
channelIdattribute
-
getUserId
- Specified by:
getUserIdin interfaceSlackLinkSharedEventIF- Returns:
- The value of the
userIdattribute
-
getMessageTs
- Specified by:
getMessageTsin interfaceSlackLinkSharedEventIF- Returns:
- The value of the
messageTsattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceSlackLinkSharedEventIF- Returns:
- The value of the
threadTsattribute
-
getLinks
- Specified by:
getLinksin interfaceSlackLinkSharedEventIF- Returns:
- The value of the
linksattribute
-
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
-
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
-
withUserId
Copy the current immutable object by setting a value for theuserIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userId- Returns:
- A modified copy or the
thisobject
-
withMessageTs
Copy the current immutable object by setting a value for themessageTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageTs- Returns:
- A modified copy or the
thisobject
-
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
-
withLinks
Copy the current immutable object with elements that replace the content oflinks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLinks
Copy the current immutable object with elements that replace the content oflinks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of links elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackLinkSharedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,channelId,userId,messageTs,threadTs,links. -
toString
Prints the immutable valueSlackLinkSharedEventwith attribute values. -
builder
Creates a builder forSlackLinkSharedEvent.SlackLinkSharedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setChannelId(String) // requiredchannelId.setUserId(String) // requireduserId.setMessageTs(String) // requiredmessageTs.setThreadTs(Optional<String>) // optionalthreadTs.addLinks|addAllLinks(Link) //linkselements .build();- Returns:
- A new SlackLinkSharedEvent builder
-