Package com.intercom.api.types
Class ButtonComponent
- java.lang.Object
-
- com.intercom.api.types.ButtonComponent
-
public final class ButtonComponent extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceButtonComponent._FinalStagestatic interfaceButtonComponent.ActionStagestatic classButtonComponent.Builderstatic interfaceButtonComponent.IdStagestatic interfaceButtonComponent.LabelStagestatic classButtonComponent.Style
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ButtonComponent.IdStagebuilder()booleanequals(java.lang.Object other)ActionComponentgetAction()java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.Boolean>getDisabled()java.lang.StringgetId()java.lang.StringgetLabel()java.util.Optional<ButtonComponent.Style>getStyle()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- A unique identifier for the component.
-
getLabel
public java.lang.String getLabel()
- Returns:
- The text that will be rendered inside the button.
-
getAction
public ActionComponent getAction()
- Returns:
- This can be a Submit Action, URL Action, or Sheets Action.
-
getStyle
public java.util.Optional<ButtonComponent.Style> getStyle()
- Returns:
- Styles the button. Default is 'primary'.
-
getDisabled
public java.util.Optional<java.lang.Boolean> getDisabled()
- Returns:
- Styles the button and prevents the action. Default is false.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ButtonComponent.IdStage builder()
-
-