Interface GenericAttachment.Builder

    • Method Detail

      • title

        GenericAttachment.Builder title​(String title)

        The title of the option.

        Parameters:
        title - The title of the option.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subTitle

        GenericAttachment.Builder subTitle​(String subTitle)

        The subtitle shown below the title.

        Parameters:
        subTitle - The subtitle shown below the title.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachmentLinkUrl

        GenericAttachment.Builder attachmentLinkUrl​(String attachmentLinkUrl)

        The URL of an attachment to the response card.

        Parameters:
        attachmentLinkUrl - The URL of an attachment to the response card.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • imageUrl

        GenericAttachment.Builder imageUrl​(String imageUrl)

        The URL of an image that is displayed to the user.

        Parameters:
        imageUrl - The URL of an image that is displayed to the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • buttons

        GenericAttachment.Builder buttons​(Collection<Button> buttons)

        The list of options to show to the user.

        Parameters:
        buttons - The list of options to show to the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • buttons

        GenericAttachment.Builder buttons​(Button... buttons)

        The list of options to show to the user.

        Parameters:
        buttons - The list of options to show to the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.