Package software.xdev.brevo.model
Class SendWhatsappMessageRequest
java.lang.Object
software.xdev.brevo.model.SendWhatsappMessageRequest
SendWhatsappMessageRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContactNumbersItem(String contactNumbersItem) contactNumbers(List<String> contactNumbers) booleanList of phone numbers of the contactsPass the set of attributes to customize the template.WhatsApp Number with country code.ID of the template to sendgetText()Text to be sent as message body (will be overridden if templateId is passed in the same request)inthashCode()senderNumber(String senderNumber) voidsetContactNumbers(List<String> contactNumbers) voidvoidsetSenderNumber(String senderNumber) voidsetTemplateId(Integer templateId) voidtemplateId(Integer templateId) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_TEMPLATE_ID
- See Also:
-
JSON_PROPERTY_SENDER_NUMBER
- See Also:
-
JSON_PROPERTY_PARAMS
- See Also:
-
JSON_PROPERTY_CONTACT_NUMBERS
- See Also:
-
JSON_PROPERTY_TEXT
- See Also:
-
-
Constructor Details
-
SendWhatsappMessageRequest
public SendWhatsappMessageRequest()
-
-
Method Details
-
templateId
-
getTemplateId
ID of the template to send- Returns:
- templateId
-
setTemplateId
-
senderNumber
-
getSenderNumber
WhatsApp Number with country code. Example, 85264318721- Returns:
- senderNumber
-
setSenderNumber
-
params
-
getParams
Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}.- Returns:
- params
-
setParams
-
contactNumbers
-
addContactNumbersItem
-
getContactNumbers
List of phone numbers of the contacts- Returns:
- contactNumbers
-
setContactNumbers
-
text
-
getText
Text to be sent as message body (will be overridden if templateId is passed in the same request)- Returns:
- text
-
setText
-
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
-