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