Class WhatsAppMessageTemplateBindings
java.lang.Object
com.azure.communication.messages.models.MessageTemplateBindings
com.azure.communication.messages.models.channels.WhatsAppMessageTemplateBindings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageTemplateBindings>
The template bindings for WhatsApp.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WhatsAppMessageTemplateBindings class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WhatsAppMessageTemplateBindings from the JsonReader.getBody()
Get the body property: The body template bindings.Get the buttons property: The button template bindings.Get the footer property: The footer template bindings.Get the headerProperty property: The header template bindings.getKind()
Get the kind property: The type discriminator describing a template bindings type.Set the body property: The body template bindings.Set the buttons property: The button template bindings.Set the footer property: The footer template bindings.setHeaderProperty
(List<WhatsAppMessageTemplateBindingsComponent> headerProperty) Set the headerProperty property: The header template bindings.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) 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
-
WhatsAppMessageTemplateBindings
public WhatsAppMessageTemplateBindings()Creates an instance of WhatsAppMessageTemplateBindings class.
-
-
Method Details
-
getKind
Get the kind property: The type discriminator describing a template bindings type.- Overrides:
getKind
in classMessageTemplateBindings
- Returns:
- the kind value.
-
getHeaderProperty
Get the headerProperty property: The header template bindings.- Returns:
- the headerProperty value.
-
setHeaderProperty
public WhatsAppMessageTemplateBindings setHeaderProperty(List<WhatsAppMessageTemplateBindingsComponent> headerProperty) Set the headerProperty property: The header template bindings.- Parameters:
headerProperty
- the headerProperty value to set.- Returns:
- the WhatsAppMessageTemplateBindings object itself.
-
getBody
Get the body property: The body template bindings.- Returns:
- the body value.
-
setBody
Set the body property: The body template bindings.- Parameters:
body
- the body value to set.- Returns:
- the WhatsAppMessageTemplateBindings object itself.
-
getButtons
Get the buttons property: The button template bindings.- Returns:
- the buttons value.
-
setButtons
public WhatsAppMessageTemplateBindings setButtons(List<WhatsAppMessageTemplateBindingsButton> buttons) Set the buttons property: The button template bindings.- Parameters:
buttons
- the buttons value to set.- Returns:
- the WhatsAppMessageTemplateBindings object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MessageTemplateBindings>
- Overrides:
toJson
in classMessageTemplateBindings
- Throws:
IOException
-
fromJson
public static WhatsAppMessageTemplateBindings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WhatsAppMessageTemplateBindings from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WhatsAppMessageTemplateBindings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the WhatsAppMessageTemplateBindings.
-