Class UpdateContact

java.lang.Object
software.xdev.brevo.model.UpdateContact

public class UpdateContact extends Object
UpdateContact
  • Field Details

  • Constructor Details

    • UpdateContact

      public UpdateContact()
  • Method Details

    • attributes

      public UpdateContact attributes(@Nullable Map<String,Object> attributes)
    • putAttributesItem

      public UpdateContact putAttributesItem(String key, Object attributesItem)
    • getAttributes

      @Nullable public Map<String,Object> 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

      public void setAttributes(@Nullable Map<String,Object> attributes)
    • extId

      public UpdateContact extId(@Nullable String extId)
    • getExtId

      @Nullable public String getExtId()
      Pass your own Id to update ext_id of a contact.
      Returns:
      extId
    • setExtId

      public void setExtId(@Nullable String extId)
    • emailBlacklisted

      public UpdateContact emailBlacklisted(@Nullable Boolean emailBlacklisted)
    • getEmailBlacklisted

      @Nullable public Boolean getEmailBlacklisted()
      Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true)
      Returns:
      emailBlacklisted
    • setEmailBlacklisted

      public void setEmailBlacklisted(@Nullable Boolean emailBlacklisted)
    • smsBlacklisted

      public UpdateContact smsBlacklisted(@Nullable Boolean smsBlacklisted)
    • getSmsBlacklisted

      @Nullable public Boolean getSmsBlacklisted()
      Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true)
      Returns:
      smsBlacklisted
    • setSmsBlacklisted

      public void setSmsBlacklisted(@Nullable Boolean smsBlacklisted)
    • listIds

      public UpdateContact listIds(@Nullable List<Long> listIds)
    • addListIdsItem

      public UpdateContact addListIdsItem(Long listIdsItem)
    • getListIds

      @Nullable public List<Long> getListIds()
      Ids of the lists to add the contact to
      Returns:
      listIds
    • setListIds

      public void setListIds(@Nullable List<Long> listIds)
    • unlinkListIds

      public UpdateContact unlinkListIds(@Nullable List<Long> unlinkListIds)
    • addUnlinkListIdsItem

      public UpdateContact addUnlinkListIdsItem(Long unlinkListIdsItem)
    • getUnlinkListIds

      @Nullable public List<Long> getUnlinkListIds()
      Ids of the lists to remove the contact from
      Returns:
      unlinkListIds
    • setUnlinkListIds

      public void setUnlinkListIds(@Nullable List<Long> unlinkListIds)
    • smtpBlacklistSender

      public UpdateContact smtpBlacklistSender(@Nullable List<String> smtpBlacklistSender)
    • addSmtpBlacklistSenderItem

      public UpdateContact addSmtpBlacklistSenderItem(String smtpBlacklistSenderItem)
    • getSmtpBlacklistSender

      @Nullable public List<String> getSmtpBlacklistSender()
      transactional email forbidden sender for contact. Use only for email Contact
      Returns:
      smtpBlacklistSender
    • setSmtpBlacklistSender

      public void setSmtpBlacklistSender(@Nullable List<String> smtpBlacklistSender)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string