Class ListItemWithoutImage.Builder
- java.lang.Object
-
- com.intercom.api.types.ListItemWithoutImage.Builder
-
- All Implemented Interfaces:
ListItemWithoutImage._FinalStage,ListItemWithoutImage.IdStage,ListItemWithoutImage.TitleStage
- Enclosing class:
- ListItemWithoutImage
public static final class ListItemWithoutImage.Builder extends java.lang.Object implements ListItemWithoutImage.IdStage, ListItemWithoutImage.TitleStage, ListItemWithoutImage._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListItemWithoutImage._FinalStageaction(ActionComponent action)This can be a Submit Action, URL Action, or Sheets Action.ListItemWithoutImage._FinalStageaction(java.util.Optional<ActionComponent> action)This can be a Submit Action, URL Action, or Sheets Action.ListItemWithoutImagebuild()ListItemWithoutImage._FinalStagedisabled(java.lang.Boolean disabled)Styles all list items and prevents the action.ListItemWithoutImage._FinalStagedisabled(java.util.Optional<java.lang.Boolean> disabled)Styles all list items and prevents the action.ListItemWithoutImage.Builderfrom(ListItemWithoutImage other)ListItemWithoutImage.TitleStageid(java.lang.String id)A unique identifier for the item.ListItemWithoutImage._FinalStageimage(java.lang.String image)An image that will be displayed to the left of the item.ListItemWithoutImage._FinalStageimage(java.util.Optional<java.lang.String> image)An image that will be displayed to the left of the item.ListItemWithoutImage._FinalStageimageHeight(java.lang.Integer imageHeight)The exact height of the image in pixels.ListItemWithoutImage._FinalStageimageHeight(java.util.Optional<java.lang.Integer> imageHeight)The exact height of the image in pixels.ListItemWithoutImage._FinalStageimageWidth(java.lang.Integer imageWidth)The exact width of the image in pixels.ListItemWithoutImage._FinalStageimageWidth(java.util.Optional<java.lang.Integer> imageWidth)The exact width of the image in pixels.ListItemWithoutImage._FinalStageroundedImage(java.lang.Boolean roundedImage)Rounds the corners of the image.ListItemWithoutImage._FinalStageroundedImage(java.util.Optional<java.lang.Boolean> roundedImage)Rounds the corners of the image.ListItemWithoutImage._FinalStagesubtitle(java.lang.String subtitle)The text shown underneath the item's title.ListItemWithoutImage._FinalStagesubtitle(java.util.Optional<java.lang.String> subtitle)The text shown underneath the item's title.ListItemWithoutImage._FinalStagetertiaryText(java.lang.String tertiaryText)The text shown next to the subtitle, separates by a bullet.ListItemWithoutImage._FinalStagetertiaryText(java.util.Optional<java.lang.String> tertiaryText)The text shown next to the subtitle, separates by a bullet.ListItemWithoutImage._FinalStagetitle(java.lang.String title)The text shown as the title for the item.
-
-
-
Method Detail
-
from
public ListItemWithoutImage.Builder from(ListItemWithoutImage other)
- Specified by:
fromin interfaceListItemWithoutImage.IdStage
-
id
public ListItemWithoutImage.TitleStage id(@NotNull java.lang.String id)
A unique identifier for the item.A unique identifier for the item.
- Specified by:
idin interfaceListItemWithoutImage.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
title
public ListItemWithoutImage._FinalStage 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 interfaceListItemWithoutImage.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
imageHeight
public ListItemWithoutImage._FinalStage imageHeight(java.lang.Integer imageHeight)
The exact height of the image in pixels.
- Specified by:
imageHeightin interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
imageHeight
public ListItemWithoutImage._FinalStage imageHeight(java.util.Optional<java.lang.Integer> imageHeight)
The exact height of the image in pixels.
- Specified by:
imageHeightin interfaceListItemWithoutImage._FinalStage
-
imageWidth
public ListItemWithoutImage._FinalStage imageWidth(java.lang.Integer imageWidth)
The exact width of the image in pixels.
- Specified by:
imageWidthin interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
imageWidth
public ListItemWithoutImage._FinalStage imageWidth(java.util.Optional<java.lang.Integer> imageWidth)
The exact width of the image in pixels.
- Specified by:
imageWidthin interfaceListItemWithoutImage._FinalStage
-
image
public ListItemWithoutImage._FinalStage image(java.lang.String image)
An image that will be displayed to the left of the item.
- Specified by:
imagein interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
image
public ListItemWithoutImage._FinalStage image(java.util.Optional<java.lang.String> image)
An image that will be displayed to the left of the item.
- Specified by:
imagein interfaceListItemWithoutImage._FinalStage
-
action
public ListItemWithoutImage._FinalStage action(ActionComponent action)
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
public ListItemWithoutImage._FinalStage action(java.util.Optional<ActionComponent> action)
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceListItemWithoutImage._FinalStage
-
disabled
public ListItemWithoutImage._FinalStage disabled(java.lang.Boolean disabled)
Styles all list items and prevents the action. Default is
false.- Specified by:
disabledin interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public ListItemWithoutImage._FinalStage disabled(java.util.Optional<java.lang.Boolean> disabled)
Styles all list items and prevents the action. Default is
false.- Specified by:
disabledin interfaceListItemWithoutImage._FinalStage
-
roundedImage
public ListItemWithoutImage._FinalStage roundedImage(java.lang.Boolean roundedImage)
Rounds the corners of the image. Default is
false.- Specified by:
roundedImagein interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
roundedImage
public ListItemWithoutImage._FinalStage roundedImage(java.util.Optional<java.lang.Boolean> roundedImage)
Rounds the corners of the image. Default is
false.- Specified by:
roundedImagein interfaceListItemWithoutImage._FinalStage
-
tertiaryText
public ListItemWithoutImage._FinalStage tertiaryText(java.lang.String tertiaryText)
The text shown next to the subtitle, separates by a bullet.
- Specified by:
tertiaryTextin interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tertiaryText
public ListItemWithoutImage._FinalStage tertiaryText(java.util.Optional<java.lang.String> tertiaryText)
The text shown next to the subtitle, separates by a bullet.
- Specified by:
tertiaryTextin interfaceListItemWithoutImage._FinalStage
-
subtitle
public ListItemWithoutImage._FinalStage subtitle(java.lang.String subtitle)
The text shown underneath the item's title.
- Specified by:
subtitlein interfaceListItemWithoutImage._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
subtitle
public ListItemWithoutImage._FinalStage subtitle(java.util.Optional<java.lang.String> subtitle)
The text shown underneath the item's title.
- Specified by:
subtitlein interfaceListItemWithoutImage._FinalStage
-
build
public ListItemWithoutImage build()
- Specified by:
buildin interfaceListItemWithoutImage._FinalStage
-
-