Class Component<T extends Component<T>>
java.lang.Object
com.whatsapp.api.domain.templates.Component<T>
- Type Parameters:
T
- the type parameter
- Direct Known Subclasses:
BodyComponent
,ButtonComponent
,FooterComponent
,HeaderComponent
The parts of the message template.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Instantiates a new Component.protected
Component
(ComponentType type) Instantiates a new Component. -
Method Summary
Modifier and TypeMethodDescriptionGets example.getText()
Gets text.getType()
Gets type.setExample
(Example example) Sets example.Sets text.setType
(ComponentType type) Sets type.
-
Constructor Details
-
Component
protected Component()Instantiates a new Component. -
Component
Instantiates a new Component.- Parameters:
type
- the type
-
-
Method Details
-
getText
Gets text.- Returns:
- the text
-
setText
Sets text.- Parameters:
text
- the text- Returns:
- the text
-
getExample
Gets example.- Returns:
- the example
-
setExample
Sets example.- Parameters:
example
- the example- Returns:
- the example
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type- Returns:
- the type
-