Interface CustomActionAttachment.Builder

    • Method Detail

      • notificationType

        CustomActionAttachment.Builder notificationType​(String notificationType)

        The type of notification that the custom action should be attached to.

        Parameters:
        notificationType - The type of notification that the custom action should be attached to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • buttonText

        CustomActionAttachment.Builder buttonText​(String buttonText)

        The text of the button that appears on the notification.

        Parameters:
        buttonText - The text of the button that appears on the notification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • criteria

        CustomActionAttachment.Builder criteria​(Collection<CustomActionAttachmentCriteria> criteria)

        The criteria for when a button should be shown based on values in the notification.

        Parameters:
        criteria - The criteria for when a button should be shown based on values in the notification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • criteria

        CustomActionAttachment.Builder criteria​(CustomActionAttachmentCriteria... criteria)

        The criteria for when a button should be shown based on values in the notification.

        Parameters:
        criteria - The criteria for when a button should be shown based on values in the notification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variables

        CustomActionAttachment.Builder variables​(Map<String,​String> variables)

        The variables to extract from the notification.

        Parameters:
        variables - The variables to extract from the notification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.