Class MessageAction.Builder

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

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

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

      public final MessageAction.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
    • setToken

      public final MessageAction.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 MessageAction.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 MessageAction.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
    • setChannel

      public final MessageAction.Builder setChannel(SlackChannel channel)
      Initializes the value for the channel attribute.
      Parameters:
      channel - The value for channel
      Returns:
      this builder for use in a chained invocation
    • setActionTs

      public final MessageAction.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
    • setCallbackId

      public final MessageAction.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
    • setTriggerId

      public final MessageAction.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
    • setResponseUrl

      public final MessageAction.Builder setResponseUrl(String responseUrl)
      Initializes the value for the responseUrl attribute.
      Parameters:
      responseUrl - The value for responseUrl
      Returns:
      this builder for use in a chained invocation
    • setMessage

      public final MessageAction.Builder setMessage(LiteMessage message)
      Initializes the value for the message attribute.
      Parameters:
      message - The value for message
      Returns:
      this builder for use in a chained invocation
    • build

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