Class MessageTemplateQuickAction
java.lang.Object
com.azure.communication.messages.models.MessageTemplateValue
com.azure.communication.messages.models.MessageTemplateQuickAction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageTemplateValue>
The message template's quick action value information.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageTemplateQuickAction
(String refValue) Creates an instance of MessageTemplateQuickAction class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageTemplateQuickAction
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MessageTemplateQuickAction from the JsonReader.getKind()
Get the kind property: The type discriminator describing a template parameter type.Get the payload property: The [Optional] quick action payload.getText()
Get the text property: The [Optional] quick action text.setPayload
(String payload) Set the payload property: The [Optional] quick action payload.Set the text property: The [Optional] quick action text.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.communication.messages.models.MessageTemplateValue
getRefValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MessageTemplateQuickAction
Creates an instance of MessageTemplateQuickAction class.- Parameters:
refValue
- the refValue value to set.
-
-
Method Details
-
getKind
Get the kind property: The type discriminator describing a template parameter type.- Overrides:
getKind
in classMessageTemplateValue
- Returns:
- the kind value.
-
getText
Get the text property: The [Optional] quick action text.- Returns:
- the text value.
-
setText
Set the text property: The [Optional] quick action text.- Parameters:
text
- the text value to set.- Returns:
- the MessageTemplateQuickAction object itself.
-
getPayload
Get the payload property: The [Optional] quick action payload.- Returns:
- the payload value.
-
setPayload
Set the payload property: The [Optional] quick action payload.- Parameters:
payload
- the payload value to set.- Returns:
- the MessageTemplateQuickAction object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MessageTemplateValue>
- Overrides:
toJson
in classMessageTemplateValue
- Throws:
IOException
-
fromJson
public static MessageTemplateQuickAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MessageTemplateQuickAction from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MessageTemplateQuickAction if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the MessageTemplateQuickAction.
-