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 java.lang.Object implements ListItemWithImage.IdStage, ListItemWithImage.TitleStage, ListItemWithImage.ImageStage, ListItemWithImage.ImageWidthStage, ListItemWithImage.ImageHeightStage, ListItemWithImage._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListItemWithImage._FinalStageaction(ActionComponent action)This can be a Submit Action, URL Action, or Sheets Action.ListItemWithImage._FinalStageaction(java.util.Optional<ActionComponent> action)This can be a Submit Action, URL Action, or Sheets Action.ListItemWithImagebuild()ListItemWithImage._FinalStagedisabled(java.lang.Boolean disabled)Styles all list items and prevents the action.ListItemWithImage._FinalStagedisabled(java.util.Optional<java.lang.Boolean> disabled)Styles all list items and prevents the action.ListItemWithImage.Builderfrom(ListItemWithImage other)ListItemWithImage.TitleStageid(java.lang.String id)A unique identifier for the item.ListItemWithImage.ImageWidthStageimage(java.lang.String image)An image that will be displayed to the left of the item.ListItemWithImage._FinalStageimageHeight(int imageHeight)The exact height of the image in pixels.ListItemWithImage.ImageHeightStageimageWidth(int imageWidth)The exact width of the image in pixels.ListItemWithImage._FinalStageroundedImage(java.lang.Boolean roundedImage)Rounds the corners of the image.ListItemWithImage._FinalStageroundedImage(java.util.Optional<java.lang.Boolean> roundedImage)Rounds the corners of the image.ListItemWithImage._FinalStagesubtitle(java.lang.String subtitle)The text shown underneath the item's title.ListItemWithImage._FinalStagesubtitle(java.util.Optional<java.lang.String> subtitle)The text shown underneath the item's title.ListItemWithImage._FinalStagetertiaryText(java.lang.String tertiaryText)The text shown next to the subtitle, separates by a bullet.ListItemWithImage._FinalStagetertiaryText(java.util.Optional<java.lang.String> tertiaryText)The text shown next to the subtitle, separates by a bullet.ListItemWithImage.ImageStagetitle(java.lang.String title)The text shown as the title for the item.
-
-
-
Method Detail
-
from
public ListItemWithImage.Builder from(ListItemWithImage other)
- Specified by:
fromin interfaceListItemWithImage.IdStage
-
id
public ListItemWithImage.TitleStage id(@NotNull java.lang.String id)
A unique identifier for the item.A unique identifier for the item.
- Specified by:
idin interfaceListItemWithImage.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public ListItemWithImage.ImageStage title(@NotNull java.lang.String title)
The text shown as the title for the item.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
public ListItemWithImage.ImageWidthStage image(@NotNull java.lang.String image)
An image that will be displayed to the left of the item.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
public ListItemWithImage.ImageHeightStage imageWidth(int imageWidth)
The exact width of the image in pixels.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
public ListItemWithImage._FinalStage imageHeight(int imageHeight)
The exact height of the image in pixels.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
public ListItemWithImage._FinalStage action(ActionComponent 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
public ListItemWithImage._FinalStage action(java.util.Optional<ActionComponent> action)
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceListItemWithImage._FinalStage
-
disabled
public ListItemWithImage._FinalStage disabled(java.lang.Boolean 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
public ListItemWithImage._FinalStage disabled(java.util.Optional<java.lang.Boolean> disabled)
Styles all list items and prevents the action. Default is
false.- Specified by:
disabledin interfaceListItemWithImage._FinalStage
-
roundedImage
public ListItemWithImage._FinalStage roundedImage(java.lang.Boolean 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
public ListItemWithImage._FinalStage roundedImage(java.util.Optional<java.lang.Boolean> roundedImage)
Rounds the corners of the image. Default is
false.- Specified by:
roundedImagein interfaceListItemWithImage._FinalStage
-
tertiaryText
public ListItemWithImage._FinalStage tertiaryText(java.lang.String 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
public ListItemWithImage._FinalStage tertiaryText(java.util.Optional<java.lang.String> tertiaryText)
The text shown next to the subtitle, separates by a bullet.
- Specified by:
tertiaryTextin interfaceListItemWithImage._FinalStage
-
subtitle
public ListItemWithImage._FinalStage subtitle(java.lang.String 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
public ListItemWithImage._FinalStage subtitle(java.util.Optional<java.lang.String> subtitle)
The text shown underneath the item's title.
- Specified by:
subtitlein interfaceListItemWithImage._FinalStage
-
build
public ListItemWithImage build()
- Specified by:
buildin interfaceListItemWithImage._FinalStage
-
-