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().

  • Method Details

    • getType

      public SlackEventType getType()
      Specified by:
      getType in interface SlackEvent
      Returns:
      The value of the type attribute
    • getUserId

      public String getUserId()
      Specified by:
      getUserId in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the userId attribute
    • getChannelId

      public Optional<String> getChannelId()
      Specified by:
      getChannelId in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the channelId attribute
    • getExternalRef

      public ExternalRef getExternalRef()
      Specified by:
      getExternalRef in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the externalRef attribute
    • getEntityUrl

      public String getEntityUrl()
      Specified by:
      getEntityUrl in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the entityUrl attribute
    • getLink

      public Link getLink()
      Specified by:
      getLink in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the link attribute
    • getAppUnfurlUrl

      public String getAppUnfurlUrl()
      Specified by:
      getAppUnfurlUrl in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the appUnfurlUrl attribute
    • getEventTs

      public String getEventTs()
      Specified by:
      getEventTs in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the eventTs attribute
    • getTriggerId

      public String getTriggerId()
      Specified by:
      getTriggerId in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the triggerId attribute
    • getUserLocale

      public String getUserLocale()
      Specified by:
      getUserLocale in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the userLocale attribute
    • getMessageTs

      public Optional<String> getMessageTs()
      Specified by:
      getMessageTs in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the messageTs attribute
    • getThreadTs

      public Optional<String> getThreadTs()
      Specified by:
      getThreadTs in interface EntityDetailsRequestedEventIF
      Returns:
      The value of the threadTs attribute
    • withType

      public final EntityDetailsRequestedEvent withType(SlackEventType value)
      Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy or the this object
    • withUserId

      public final EntityDetailsRequestedEvent withUserId(String value)
      Copy the current immutable object by setting a value for the userId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userId
      Returns:
      A modified copy or the this object
    • withChannelId

      public final EntityDetailsRequestedEvent withChannelId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional channelId attribute.
      Parameters:
      value - The value for channelId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withChannelId

      public final EntityDetailsRequestedEvent withChannelId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the channelId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for channelId
      Returns:
      A modified copy or this if not changed
    • withExternalRef

      public final EntityDetailsRequestedEvent withExternalRef(ExternalRef value)
      Copy the current immutable object by setting a value for the externalRef attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for externalRef
      Returns:
      A modified copy or the this object
    • withEntityUrl

      public final EntityDetailsRequestedEvent withEntityUrl(String value)
      Copy the current immutable object by setting a value for the entityUrl attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for entityUrl
      Returns:
      A modified copy or the this object
    • withLink

      public final EntityDetailsRequestedEvent withLink(Link value)
      Copy the current immutable object by setting a value for the link attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for link
      Returns:
      A modified copy or the this object
    • withAppUnfurlUrl

      public final EntityDetailsRequestedEvent withAppUnfurlUrl(String value)
      Copy the current immutable object by setting a value for the appUnfurlUrl attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for appUnfurlUrl
      Returns:
      A modified copy or the this object
    • withEventTs

      public final EntityDetailsRequestedEvent withEventTs(String value)
      Copy the current immutable object by setting a value for the eventTs attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for eventTs
      Returns:
      A modified copy or the this object
    • withTriggerId

      public final EntityDetailsRequestedEvent withTriggerId(String value)
      Copy the current immutable object by setting a value for the triggerId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for triggerId
      Returns:
      A modified copy or the this object
    • withUserLocale

      public final EntityDetailsRequestedEvent withUserLocale(String value)
      Copy the current immutable object by setting a value for the userLocale attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userLocale
      Returns:
      A modified copy or the this object
    • withMessageTs

      public final EntityDetailsRequestedEvent withMessageTs(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional messageTs attribute.
      Parameters:
      value - The value for messageTs, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withMessageTs

      public final EntityDetailsRequestedEvent withMessageTs(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the messageTs attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for messageTs
      Returns:
      A modified copy or this if not changed
    • withThreadTs

      public final EntityDetailsRequestedEvent withThreadTs(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional threadTs attribute.
      Parameters:
      value - The value for threadTs, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withThreadTs

      public final EntityDetailsRequestedEvent withThreadTs(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the threadTs attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for threadTs
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of EntityDetailsRequestedEvent that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: type, userId, channelId, externalRef, entityUrl, link, appUnfurlUrl, eventTs, triggerId, userLocale, messageTs, threadTs.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value EntityDetailsRequestedEvent with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a EntityDetailsRequestedEventIF value. 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

      public static EntityDetailsRequestedEvent.Builder builder()
      Creates a builder for EntityDetailsRequestedEvent.
       EntityDetailsRequestedEvent.builder()
          .setType(com.hubspot.slack.client.models.events.SlackEventType) // required type
          .setUserId(String) // required userId
          .setChannelId(Optional<String>) // optional channelId
          .setExternalRef(com.hubspot.slack.client.methods.params.chat.workobject.ExternalRef) // required externalRef
          .setEntityUrl(String) // required entityUrl
          .setLink(com.hubspot.slack.client.models.events.links.Link) // required link
          .setAppUnfurlUrl(String) // required appUnfurlUrl
          .setEventTs(String) // required eventTs
          .setTriggerId(String) // required triggerId
          .setUserLocale(String) // required userLocale
          .setMessageTs(Optional<String>) // optional messageTs
          .setThreadTs(Optional<String>) // optional threadTs
          .build();
       
      Returns:
      A new EntityDetailsRequestedEvent builder