Package software.xdev.brevo.model
Class UpdateContact
java.lang.Object
software.xdev.brevo.model.UpdateContact
UpdateContact
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListIdsItem(Long listIdsItem) addSmtpBlacklistSenderItem(String smtpBlacklistSenderItem) addUnlinkListIdsItem(Long unlinkListIdsItem) attributes(Map<String, Object> attributes) emailBlacklisted(Boolean emailBlacklisted) booleanPass the set of attributes to be updated.Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true)getExtId()Pass your own Id to update ext_id of a contact.Ids of the lists to add the contact toSet/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true)transactional email forbidden sender for contact.Ids of the lists to remove the contact frominthashCode()putAttributesItem(String key, Object attributesItem) voidsetAttributes(Map<String, Object> attributes) voidsetEmailBlacklisted(Boolean emailBlacklisted) voidvoidsetListIds(List<Long> listIds) voidsetSmsBlacklisted(Boolean smsBlacklisted) voidsetSmtpBlacklistSender(List<String> smtpBlacklistSender) voidsetUnlinkListIds(List<Long> unlinkListIds) smsBlacklisted(Boolean smsBlacklisted) smtpBlacklistSender(List<String> smtpBlacklistSender) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.unlinkListIds(List<Long> unlinkListIds)
-
Field Details
-
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_EXT_ID
- See Also:
-
JSON_PROPERTY_EMAIL_BLACKLISTED
- See Also:
-
JSON_PROPERTY_SMS_BLACKLISTED
- See Also:
-
JSON_PROPERTY_LIST_IDS
- See Also:
-
JSON_PROPERTY_UNLINK_LIST_IDS
- See Also:
-
JSON_PROPERTY_SMTP_BLACKLIST_SENDER
- See Also:
-
-
Constructor Details
-
UpdateContact
public UpdateContact()
-
-
Method Details
-
attributes
-
putAttributesItem
-
getAttributes
Pass the set of attributes to be updated. **These attributes must be present in your account**. To update existing email address of a contact with the new one please pass EMAIL in attributes. For example, **{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\", \"COUNTRIES\":[\"India\",\"China\"]}**. The attribute's parameter should be passed in capital letter while updating a contact. Values that don't match the attribute type (e.g. text or string in a date attribute) will be ignored. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in **SMS** field should be passed with proper country code. For example: **{\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"}**- Returns:
- attributes
-
setAttributes
-
extId
-
getExtId
Pass your own Id to update ext_id of a contact.- Returns:
- extId
-
setExtId
-
emailBlacklisted
-
getEmailBlacklisted
Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true)- Returns:
- emailBlacklisted
-
setEmailBlacklisted
-
smsBlacklisted
-
getSmsBlacklisted
Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true)- Returns:
- smsBlacklisted
-
setSmsBlacklisted
-
listIds
-
addListIdsItem
-
getListIds
Ids of the lists to add the contact to- Returns:
- listIds
-
setListIds
-
unlinkListIds
-
addUnlinkListIdsItem
-
getUnlinkListIds
Ids of the lists to remove the contact from- Returns:
- unlinkListIds
-
setUnlinkListIds
-
smtpBlacklistSender
-
addSmtpBlacklistSenderItem
-
getSmtpBlacklistSender
transactional email forbidden sender for contact. Use only for email Contact- Returns:
- smtpBlacklistSender
-
setSmtpBlacklistSender
-
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
-