Package com.intercom.api.types
Class ListItemWithImage.Builder
java.lang.Object
com.intercom.api.types.ListItemWithImage.Builder
- All Implemented Interfaces:
ListItemWithImage._FinalStage,ListItemWithImage.IdStage,ListItemWithImage.ImageHeightStage,ListItemWithImage.ImageStage,ListItemWithImage.ImageWidthStage,ListItemWithImage.TitleStage
- Enclosing class:
ListItemWithImage
public static final class ListItemWithImage.Builder
extends Object
implements ListItemWithImage.IdStage, ListItemWithImage.TitleStage, ListItemWithImage.ImageStage, ListItemWithImage.ImageWidthStage, ListItemWithImage.ImageHeightStage, ListItemWithImage._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaction(ActionComponent action) This can be a Submit Action, URL Action, or Sheets Action.action(Optional<ActionComponent> action) build()Styles all list items and prevents the action.from(ListItemWithImage other) A unique identifier for the item.An image that will be displayed to the left of the item.imageHeight(int imageHeight) The exact height of the image in pixels.imageWidth(int imageWidth) The exact width of the image in pixels.roundedImage(Boolean roundedImage) Rounds the corners of the image.roundedImage(Optional<Boolean> roundedImage) The text shown underneath the item's title.tertiaryText(String tertiaryText) The text shown next to the subtitle, separates by a bullet.tertiaryText(Optional<String> tertiaryText) The text shown as the title for the item.
-
Method Details
-
from
- Specified by:
fromin interfaceListItemWithImage.IdStage
-
id
A unique identifier for the item.
- Specified by:
idin interfaceListItemWithImage.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
The text shown as the title for the item.
- Specified by:
titlein interfaceListItemWithImage.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
image
An image that will be displayed to the left of the item.
- Specified by:
imagein interfaceListItemWithImage.ImageStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
imageWidth
The exact width of the image in pixels.
- Specified by:
imageWidthin interfaceListItemWithImage.ImageWidthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
imageHeight
The exact height of the image in pixels.
- Specified by:
imageHeightin interfaceListItemWithImage.ImageHeightStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceListItemWithImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
- Specified by:
actionin interfaceListItemWithImage._FinalStage
-
disabled
Styles all list items and prevents the action. Default is
false.- Specified by:
disabledin interfaceListItemWithImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
- Specified by:
disabledin interfaceListItemWithImage._FinalStage
-
roundedImage
Rounds the corners of the image. Default is
false.- Specified by:
roundedImagein interfaceListItemWithImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
roundedImage
- Specified by:
roundedImagein interfaceListItemWithImage._FinalStage
-
tertiaryText
The text shown next to the subtitle, separates by a bullet.
- Specified by:
tertiaryTextin interfaceListItemWithImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tertiaryText
- Specified by:
tertiaryTextin interfaceListItemWithImage._FinalStage
-
subtitle
The text shown underneath the item's title.
- Specified by:
subtitlein interfaceListItemWithImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
subtitle
- Specified by:
subtitlein interfaceListItemWithImage._FinalStage
-
build
- Specified by:
buildin interfaceListItemWithImage._FinalStage
-