Interface InvokedBy.Builder

  • Method Details

    • standardMessages

      InvokedBy.Builder standardMessages(String standardMessages)

      Sets standard messages as the bot trigger. For standard messages:

      • ALL: The bot processes all standard messages.

      • AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member.

      • MENTIONS: The bot processes all standard messages that have a message attribute with CHIME.mentions and a value of the bot ARN.

      • NONE: The bot processes no standard messages.

      Parameters:
      standardMessages - Sets standard messages as the bot trigger. For standard messages:

      • ALL: The bot processes all standard messages.

      • AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member.

      • MENTIONS: The bot processes all standard messages that have a message attribute with CHIME.mentions and a value of the bot ARN.

      • NONE: The bot processes no standard messages.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • standardMessages

      InvokedBy.Builder standardMessages(StandardMessages standardMessages)

      Sets standard messages as the bot trigger. For standard messages:

      • ALL: The bot processes all standard messages.

      • AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member.

      • MENTIONS: The bot processes all standard messages that have a message attribute with CHIME.mentions and a value of the bot ARN.

      • NONE: The bot processes no standard messages.

      Parameters:
      standardMessages - Sets standard messages as the bot trigger. For standard messages:

      • ALL: The bot processes all standard messages.

      • AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member.

      • MENTIONS: The bot processes all standard messages that have a message attribute with CHIME.mentions and a value of the bot ARN.

      • NONE: The bot processes no standard messages.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetedMessages

      InvokedBy.Builder targetedMessages(String targetedMessages)

      Sets targeted messages as the bot trigger. For targeted messages:

      • ALL: The bot processes all TargetedMessages sent to it. The bot then responds with a targeted message back to the sender.

      • NONE: The bot processes no targeted messages.

      Parameters:
      targetedMessages - Sets targeted messages as the bot trigger. For targeted messages:

      • ALL: The bot processes all TargetedMessages sent to it. The bot then responds with a targeted message back to the sender.

      • NONE: The bot processes no targeted messages.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetedMessages

      InvokedBy.Builder targetedMessages(TargetedMessages targetedMessages)

      Sets targeted messages as the bot trigger. For targeted messages:

      • ALL: The bot processes all TargetedMessages sent to it. The bot then responds with a targeted message back to the sender.

      • NONE: The bot processes no targeted messages.

      Parameters:
      targetedMessages - Sets targeted messages as the bot trigger. For targeted messages:

      • ALL: The bot processes all TargetedMessages sent to it. The bot then responds with a targeted message back to the sender.

      • NONE: The bot processes no targeted messages.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: