Class ListItemWithImage

java.lang.Object
com.intercom.api.types.ListItemWithImage
All Implemented Interfaces:
IListItem

public final class ListItemWithImage extends Object implements IListItem
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface IListItem
      Returns:
      The type of component you are rendering.
    • getId

      public String getId()
      Specified by:
      getId in interface IListItem
      Returns:
      A unique identifier for the item.
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface IListItem
      Returns:
      The text shown as the title for the item.
    • getSubtitle

      public Optional<String> getSubtitle()
      Specified by:
      getSubtitle in interface IListItem
      Returns:
      The text shown underneath the item's title.
    • getTertiaryText

      public Optional<String> getTertiaryText()
      Specified by:
      getTertiaryText in interface IListItem
      Returns:
      The text shown next to the subtitle, separates by a bullet.
    • getRoundedImage

      public Optional<Boolean> getRoundedImage()
      Specified by:
      getRoundedImage in interface IListItem
      Returns:
      Rounds the corners of the image. Default is false.
    • getDisabled

      public Optional<Boolean> getDisabled()
      Specified by:
      getDisabled in interface IListItem
      Returns:
      Styles all list items and prevents the action. Default is false.
    • getAction

      public Optional<ActionComponent> getAction()
      Specified by:
      getAction in interface IListItem
      Returns:
      This can be a Submit Action, URL Action, or Sheets Action.
    • getImage

      public String getImage()
      Returns:
      An image that will be displayed to the left of the item.
    • getImageWidth

      public int getImageWidth()
      Returns:
      The exact width of the image in pixels.
    • getImageHeight

      public int getImageHeight()
      Returns:
      The exact height of the image in pixels.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ListItemWithImage.IdStage builder()