Interface GenericAttachment.Builder

All Superinterfaces:
Buildable, CopyableBuilder<GenericAttachment.Builder,GenericAttachment>, SdkBuilder<GenericAttachment.Builder,GenericAttachment>, SdkPojo
Enclosing class:
GenericAttachment

public static interface GenericAttachment.Builder extends SdkPojo, CopyableBuilder<GenericAttachment.Builder,GenericAttachment>
  • Method Details

    • 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

      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.
    • buttons

      The list of options to show to the user.

      This is a convenience method that creates an instance of the Button.Builder avoiding the need to create one manually via Button.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to buttons(List<Button>).

      Parameters:
      buttons - a consumer that will call methods on Button.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: