Interface ImageResponseCard.Builder

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

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

    • title

      The title to display on the response card. The format of the title is determined by the platform displaying the response card.

      Parameters:
      title - The title to display on the response card. The format of the title is determined by the platform displaying the response card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subtitle

      ImageResponseCard.Builder subtitle(String subtitle)

      The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.

      Parameters:
      subtitle - The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageUrl

      ImageResponseCard.Builder imageUrl(String imageUrl)

      The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.

      Parameters:
      imageUrl - The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buttons

      A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

      Parameters:
      buttons - A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buttons

      ImageResponseCard.Builder buttons(Button... buttons)

      A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

      Parameters:
      buttons - A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • buttons

      A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

      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: