Package com.intercom.api.types
Class ButtonComponent.Builder
java.lang.Object
com.intercom.api.types.ButtonComponent.Builder
- All Implemented Interfaces:
ButtonComponent._FinalStage,ButtonComponent.ActionStage,ButtonComponent.IdStage,ButtonComponent.LabelStage
- Enclosing class:
ButtonComponent
public static final class ButtonComponent.Builder
extends Object
implements ButtonComponent.IdStage, ButtonComponent.LabelStage, ButtonComponent.ActionStage, ButtonComponent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaction(ActionComponent action) This can be a Submit Action, URL Action, or Sheets Action.build()Styles the button and prevents the action.from(ButtonComponent other) A unique identifier for the component.The text that will be rendered inside the button.style(ButtonComponent.Style style) Styles the button.style(Optional<ButtonComponent.Style> style)
-
Method Details
-
from
- Specified by:
fromin interfaceButtonComponent.IdStage
-
id
A unique identifier for the component.
- Specified by:
idin interfaceButtonComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
The text that will be rendered inside the button.
- Specified by:
labelin interfaceButtonComponent.LabelStage- 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 interfaceButtonComponent.ActionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
Styles the button and prevents the action. Default is false.
- Specified by:
disabledin interfaceButtonComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
- Specified by:
disabledin interfaceButtonComponent._FinalStage
-
style
Styles the button. Default is 'primary'.
- Specified by:
stylein interfaceButtonComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
style
- Specified by:
stylein interfaceButtonComponent._FinalStage
-
build
- Specified by:
buildin interfaceButtonComponent._FinalStage
-