Class EntityDetailsRequestedEvent.Builder

java.lang.Object
com.hubspot.slack.client.models.events.links.EntityDetailsRequestedEvent.Builder
Enclosing class:
EntityDetailsRequestedEvent

@Generated(from="EntityDetailsRequestedEventIF", generator="Immutables") @NotThreadSafe public static final class EntityDetailsRequestedEvent.Builder extends Object
Builds instances of type EntityDetailsRequestedEvent. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.events.links.EntityDetailsRequestedEventIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final EntityDetailsRequestedEvent.Builder from(SlackEvent instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.events.SlackEvent instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setType

      Initializes the value for the type attribute.
      Parameters:
      type - The value for type
      Returns:
      this builder for use in a chained invocation
    • setUserId

      public final EntityDetailsRequestedEvent.Builder setUserId(String userId)
      Initializes the value for the userId attribute.
      Parameters:
      userId - The value for userId
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final EntityDetailsRequestedEvent.Builder setChannelId(@Nullable String channelId)
      Initializes the optional value channelId to channelId.
      Parameters:
      channelId - The value for channelId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setChannelId

      public final EntityDetailsRequestedEvent.Builder setChannelId(Optional<String> channelId)
      Initializes the optional value channelId to channelId.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setExternalRef

      public final EntityDetailsRequestedEvent.Builder setExternalRef(ExternalRef externalRef)
      Initializes the value for the externalRef attribute.
      Parameters:
      externalRef - The value for externalRef
      Returns:
      this builder for use in a chained invocation
    • setEntityUrl

      public final EntityDetailsRequestedEvent.Builder setEntityUrl(String entityUrl)
      Initializes the value for the entityUrl attribute.
      Parameters:
      entityUrl - The value for entityUrl
      Returns:
      this builder for use in a chained invocation
    • setLink

      public final EntityDetailsRequestedEvent.Builder setLink(Link link)
      Initializes the value for the link attribute.
      Parameters:
      link - The value for link
      Returns:
      this builder for use in a chained invocation
    • setAppUnfurlUrl

      public final EntityDetailsRequestedEvent.Builder setAppUnfurlUrl(String appUnfurlUrl)
      Initializes the value for the appUnfurlUrl attribute.
      Parameters:
      appUnfurlUrl - The value for appUnfurlUrl
      Returns:
      this builder for use in a chained invocation
    • setEventTs

      public final EntityDetailsRequestedEvent.Builder setEventTs(String eventTs)
      Initializes the value for the eventTs attribute.
      Parameters:
      eventTs - The value for eventTs
      Returns:
      this builder for use in a chained invocation
    • setTriggerId

      public final EntityDetailsRequestedEvent.Builder setTriggerId(String triggerId)
      Initializes the value for the triggerId attribute.
      Parameters:
      triggerId - The value for triggerId
      Returns:
      this builder for use in a chained invocation
    • setUserLocale

      public final EntityDetailsRequestedEvent.Builder setUserLocale(String userLocale)
      Initializes the value for the userLocale attribute.
      Parameters:
      userLocale - The value for userLocale
      Returns:
      this builder for use in a chained invocation
    • setMessageTs

      public final EntityDetailsRequestedEvent.Builder setMessageTs(@Nullable String messageTs)
      Initializes the optional value messageTs to messageTs.
      Parameters:
      messageTs - The value for messageTs, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setMessageTs

      public final EntityDetailsRequestedEvent.Builder setMessageTs(Optional<String> messageTs)
      Initializes the optional value messageTs to messageTs.
      Parameters:
      messageTs - The value for messageTs
      Returns:
      this builder for use in a chained invocation
    • setThreadTs

      public final EntityDetailsRequestedEvent.Builder setThreadTs(@Nullable String threadTs)
      Initializes the optional value threadTs to threadTs.
      Parameters:
      threadTs - The value for threadTs, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setThreadTs

      public final EntityDetailsRequestedEvent.Builder setThreadTs(Optional<String> threadTs)
      Initializes the optional value threadTs to threadTs.
      Parameters:
      threadTs - The value for threadTs
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of EntityDetailsRequestedEvent
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing