Class EntityDetailsRequestedEvent
java.lang.Object
com.hubspot.slack.client.models.events.links.EntityDetailsRequestedEvent
- All Implemented Interfaces:
EntityDetailsRequestedEventIF,SlackEvent
@Generated(from="EntityDetailsRequestedEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class EntityDetailsRequestedEvent
extends Object
implements EntityDetailsRequestedEventIF
Immutable implementation of
EntityDetailsRequestedEventIF.
Use the builder to create immutable instances:
EntityDetailsRequestedEvent.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeEntityDetailsRequestedEvent. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forEntityDetailsRequestedEvent.static EntityDetailsRequestedEventcopyOf(EntityDetailsRequestedEventIF instance) Creates an immutable copy of aEntityDetailsRequestedEventIFvalue.booleanThis instance is equal to all instances ofEntityDetailsRequestedEventthat have equal attribute values.getLink()getType()inthashCode()Computes a hash code from attributes:type,userId,channelId,externalRef,entityUrl,link,appUnfurlUrl,eventTs,triggerId,userLocale,messageTs,threadTs.toString()Prints the immutable valueEntityDetailsRequestedEventwith attribute values.withAppUnfurlUrl(String value) Copy the current immutable object by setting a value for theappUnfurlUrlattribute.withChannelId(String value) Copy the current immutable object by setting a present value for the optionalchannelIdattribute.withChannelId(Optional<String> optional) Copy the current immutable object by setting an optional value for thechannelIdattribute.withEntityUrl(String value) Copy the current immutable object by setting a value for theentityUrlattribute.withEventTs(String value) Copy the current immutable object by setting a value for theeventTsattribute.withExternalRef(ExternalRef value) Copy the current immutable object by setting a value for theexternalRefattribute.Copy the current immutable object by setting a value for thelinkattribute.withMessageTs(String value) Copy the current immutable object by setting a present value for the optionalmessageTsattribute.withMessageTs(Optional<String> optional) Copy the current immutable object by setting an optional value for themessageTsattribute.withThreadTs(String value) Copy the current immutable object by setting a present value for the optionalthreadTsattribute.withThreadTs(Optional<String> optional) Copy the current immutable object by setting an optional value for thethreadTsattribute.withTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.withType(SlackEventType value) Copy the current immutable object by setting a value for thetypeattribute.withUserId(String value) Copy the current immutable object by setting a value for theuserIdattribute.withUserLocale(String value) Copy the current immutable object by setting a value for theuserLocaleattribute.Methods inherited from interface com.hubspot.slack.client.models.events.links.EntityDetailsRequestedEventIF
getTs
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackEvent- Returns:
- The value of the
typeattribute
-
getUserId
- Specified by:
getUserIdin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
userIdattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
channelIdattribute
-
getExternalRef
- Specified by:
getExternalRefin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
externalRefattribute
-
getEntityUrl
- Specified by:
getEntityUrlin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
entityUrlattribute
-
getLink
- Specified by:
getLinkin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
linkattribute
-
getAppUnfurlUrl
- Specified by:
getAppUnfurlUrlin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
appUnfurlUrlattribute
-
getEventTs
- Specified by:
getEventTsin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
eventTsattribute
-
getTriggerId
- Specified by:
getTriggerIdin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
triggerIdattribute
-
getUserLocale
- Specified by:
getUserLocalein interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
userLocaleattribute
-
getMessageTs
- Specified by:
getMessageTsin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
messageTsattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceEntityDetailsRequestedEventIF- Returns:
- The value of the
threadTsattribute
-
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
-
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
-
withChannelId
Copy the current immutable object by setting a present value for the optionalchannelIdattribute.- Parameters:
value- The value for channelId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withChannelId
Copy the current immutable object by setting an optional value for thechannelIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for channelId- Returns:
- A modified copy or
thisif not changed
-
withExternalRef
Copy the current immutable object by setting a value for theexternalRefattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for externalRef- Returns:
- A modified copy or the
thisobject
-
withEntityUrl
Copy the current immutable object by setting a value for theentityUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for entityUrl- Returns:
- A modified copy or the
thisobject
-
withLink
Copy the current immutable object by setting a value for thelinkattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for link- Returns:
- A modified copy or the
thisobject
-
withAppUnfurlUrl
Copy the current immutable object by setting a value for theappUnfurlUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for appUnfurlUrl- 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
-
withTriggerId
Copy the current immutable object by setting a value for thetriggerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for triggerId- Returns:
- A modified copy or the
thisobject
-
withUserLocale
Copy the current immutable object by setting a value for theuserLocaleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userLocale- Returns:
- A modified copy or the
thisobject
-
withMessageTs
Copy the current immutable object by setting a present value for the optionalmessageTsattribute.- Parameters:
value- The value for messageTs,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMessageTs
Copy the current immutable object by setting an optional value for themessageTsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for messageTs- Returns:
- A modified copy or
thisif not changed
-
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
-
equals
This instance is equal to all instances ofEntityDetailsRequestedEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,userId,channelId,externalRef,entityUrl,link,appUnfurlUrl,eventTs,triggerId,userLocale,messageTs,threadTs. -
toString
Prints the immutable valueEntityDetailsRequestedEventwith attribute values. -
copyOf
Creates an immutable copy of aEntityDetailsRequestedEventIFvalue. 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 EntityDetailsRequestedEvent instance
-
builder
Creates a builder forEntityDetailsRequestedEvent.EntityDetailsRequestedEvent.builder() .setType(com.hubspot.slack.client.models.events.SlackEventType) // requiredtype.setUserId(String) // requireduserId.setChannelId(Optional<String>) // optionalchannelId.setExternalRef(com.hubspot.slack.client.methods.params.chat.workobject.ExternalRef) // requiredexternalRef.setEntityUrl(String) // requiredentityUrl.setLink(com.hubspot.slack.client.models.events.links.Link) // requiredlink.setAppUnfurlUrl(String) // requiredappUnfurlUrl.setEventTs(String) // requiredeventTs.setTriggerId(String) // requiredtriggerId.setUserLocale(String) // requireduserLocale.setMessageTs(Optional<String>) // optionalmessageTs.setThreadTs(Optional<String>) // optionalthreadTs.build();- Returns:
- A new EntityDetailsRequestedEvent builder
-