Class ContentCardAction
- java.lang.Object
-
- cloud.genesys.webmessaging.sdk.model.ContentCardAction
-
- All Implemented Interfaces:
Serializable
public class ContentCardAction extends Object implements Serializable
A card action that a user can take.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContentCardAction.TypeEnumDescribes the type of action.
-
Constructor Summary
Constructors Constructor Description ContentCardAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetPayload()StringgetText()ContentCardAction.TypeEnumgetType()StringgetUrl()inthashCode()ContentCardActionpayload(String payload)Text to be returned as the payload from a ButtonResponse when a button is clicked.voidsetPayload(String payload)voidsetText(String text)voidsetType(ContentCardAction.TypeEnum type)voidsetUrl(String url)ContentCardActiontext(String text)The response text from the button click.StringtoString()ContentCardActiontype(ContentCardAction.TypeEnum type)Describes the type of action.ContentCardActionurl(String url)A URL of a web page to direct the user to.
-
-
-
Method Detail
-
type
public ContentCardAction type(ContentCardAction.TypeEnum type)
Describes the type of action.
-
getType
public ContentCardAction.TypeEnum getType()
-
setType
public void setType(ContentCardAction.TypeEnum type)
-
text
public ContentCardAction text(String text)
The response text from the button click.
-
getText
public String getText()
-
setText
public void setText(String text)
-
payload
public ContentCardAction payload(String payload)
Text to be returned as the payload from a ButtonResponse when a button is clicked. The payload and text are a combination which will have to be unique across each card and carousel in order to determine which button was clicked in that card or carousel.
-
getPayload
public String getPayload()
-
setPayload
public void setPayload(String payload)
-
url
public ContentCardAction url(String url)
A URL of a web page to direct the user to.
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
-