Class Shortcut.Builder

java.lang.Object
com.hubspot.slack.client.models.interaction.Shortcut.Builder
Enclosing class:
Shortcut

@Generated(from="ShortcutIF", generator="Immutables") @NotThreadSafe public static final class Shortcut.Builder extends Object
Builds instances of type Shortcut. 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

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

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

      public final Shortcut.Builder setType(InteractiveCallbackType type)
      Initializes the value for the type attribute.
      Parameters:
      type - The value for type
      Returns:
      this builder for use in a chained invocation
    • setCallbackId

      public final Shortcut.Builder setCallbackId(String callbackId)
      Initializes the value for the callbackId attribute.
      Parameters:
      callbackId - The value for callbackId
      Returns:
      this builder for use in a chained invocation
    • setActionTs

      public final Shortcut.Builder setActionTs(String actionTs)
      Initializes the value for the actionTs attribute.
      Parameters:
      actionTs - The value for actionTs
      Returns:
      this builder for use in a chained invocation
    • setToken

      public final Shortcut.Builder setToken(String token)
      Initializes the value for the token attribute.
      Parameters:
      token - The value for token
      Returns:
      this builder for use in a chained invocation
    • setTeam

      public final Shortcut.Builder setTeam(SlackTeam team)
      Initializes the value for the team attribute.
      Parameters:
      team - The value for team
      Returns:
      this builder for use in a chained invocation
    • setUser

      public final Shortcut.Builder setUser(SlackUserLite user)
      Initializes the value for the user attribute.
      Parameters:
      user - The value for user
      Returns:
      this builder for use in a chained invocation
    • setTriggerId

      public final Shortcut.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
    • build

      public Shortcut build()
      Builds a new Shortcut.
      Returns:
      An immutable instance of Shortcut
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing