Class CreateContact

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

public class CreateContact extends Object
CreateContact
  • Field Details

  • Constructor Details

    • CreateContact

      public CreateContact()
  • Method Details

    • email

      public CreateContact email(@Nullable String email)
    • getEmail

      @Nullable public String getEmail()
      Email address of the user. **Mandatory if \"ext_id\" & \"SMS\" field is not passed.**
      Returns:
      email
    • setEmail

      public void setEmail(@Nullable String email)
    • extId

      public CreateContact extId(@Nullable String extId)
    • getExtId

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

      public void setExtId(@Nullable String extId)
    • attributes

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

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

      @Nullable public Map<String,Object> getAttributes()
      Pass the set of attributes and their values. The attribute's parameter should be passed in capital letter while creating a contact. Values that don't match the attribute type (e.g. text or string in a date attribute) will be ignored. **These attributes must be present in your Brevo account.**. For eg: **{\"FNAME\":\"Elly\", \"LNAME\":\"Roger\", \"COUNTRIES\":[\"India\",\"China\"]}**
      Returns:
      attributes
    • setAttributes

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

      public CreateContact emailBlacklisted(@Nullable Boolean emailBlacklisted)
    • getEmailBlacklisted

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

      public void setEmailBlacklisted(@Nullable Boolean emailBlacklisted)
    • smsBlacklisted

      public CreateContact smsBlacklisted(@Nullable Boolean smsBlacklisted)
    • getSmsBlacklisted

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

      public void setSmsBlacklisted(@Nullable Boolean smsBlacklisted)
    • listIds

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

      public CreateContact 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)
    • updateEnabled

      public CreateContact updateEnabled(@Nullable Boolean updateEnabled)
    • getUpdateEnabled

      @Nullable public Boolean getUpdateEnabled()
      Facilitate to update the existing contact in the same request (updateEnabled = true)
      Returns:
      updateEnabled
    • setUpdateEnabled

      public void setUpdateEnabled(@Nullable Boolean updateEnabled)
    • smtpBlacklistSender

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

      public CreateContact addSmtpBlacklistSenderItem(String smtpBlacklistSenderItem)
    • getSmtpBlacklistSender

      @Nullable public List<String> getSmtpBlacklistSender()
      transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true )
      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