Package software.xdev.brevo.model
Class CreateWhatsAppTemplate
java.lang.Object
software.xdev.brevo.model.CreateWhatsAppTemplate
CreateWhatsAppTemplate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCategory of the templatestatic enumsource of the template -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategory(CreateWhatsAppTemplate.CategoryEnum category) booleanBody of the template.Category of the templateText content of the header in the template.Language of the template.Absolute url of the media file **(no local file)** for the header.getName()Name of the templatesource of the templateinthashCode()headerText(String headerText) voidsetBodyText(String bodyText) voidvoidsetHeaderText(String headerText) voidsetLanguage(String language) voidsetMediaUrl(String mediaUrl) voidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_LANGUAGE
- See Also:
-
JSON_PROPERTY_CATEGORY
- See Also:
-
JSON_PROPERTY_MEDIA_URL
- See Also:
-
JSON_PROPERTY_BODY_TEXT
- See Also:
-
JSON_PROPERTY_HEADER_TEXT
- See Also:
-
JSON_PROPERTY_SOURCE
- See Also:
-
-
Constructor Details
-
CreateWhatsAppTemplate
public CreateWhatsAppTemplate()
-
-
Method Details
-
name
-
getName
Name of the template- Returns:
- name
-
setName
-
language
-
getLanguage
Language of the template. For Example : **en** for English- Returns:
- language
-
setLanguage
-
category
-
getCategory
Category of the template- Returns:
- category
-
setCategory
-
mediaUrl
-
getMediaUrl
Absolute url of the media file **(no local file)** for the header. **Use this field in you want to add media in Template header and headerText is empty**. Allowed extensions for media files are: #### jpeg | png | mp4 | pdf- Returns:
- mediaUrl
-
setMediaUrl
-
bodyText
-
getBodyText
Body of the template. **Maximum allowed characters are 1024**- Returns:
- bodyText
-
setBodyText
-
headerText
-
getHeaderText
Text content of the header in the template. **Maximum allowed characters are 45** **Use this field to add text content in template header and if mediaUrl is empty**- Returns:
- headerText
-
setHeaderText
-
source
-
getSource
source of the template- Returns:
- source
-
setSource
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-