Class CreateDoiContact

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

public class CreateDoiContact extends Object
CreateDoiContact
  • Field Details

  • Constructor Details

    • CreateDoiContact

      public CreateDoiContact()
  • Method Details

    • email

      public CreateDoiContact email(@Nonnull String email)
    • getEmail

      @Nonnull public String getEmail()
      Email address where the confirmation email will be sent. This email address will be the identifier for all other contact attributes.
      Returns:
      email
    • setEmail

      public void setEmail(@Nonnull String email)
    • attributes

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

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

      @Nullable public Map<String,Object> getAttributes()
      Pass the set of attributes and their values. **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)
    • includeListIds

      public CreateDoiContact includeListIds(@Nonnull List<Long> includeListIds)
    • addIncludeListIdsItem

      public CreateDoiContact addIncludeListIdsItem(Long includeListIdsItem)
    • getIncludeListIds

      @Nonnull public List<Long> getIncludeListIds()
      Lists under user account where contact should be added
      Returns:
      includeListIds
    • setIncludeListIds

      public void setIncludeListIds(@Nonnull List<Long> includeListIds)
    • excludeListIds

      public CreateDoiContact excludeListIds(@Nullable List<Long> excludeListIds)
    • addExcludeListIdsItem

      public CreateDoiContact addExcludeListIdsItem(Long excludeListIdsItem)
    • getExcludeListIds

      @Nullable public List<Long> getExcludeListIds()
      Lists under user account where contact should not be added
      Returns:
      excludeListIds
    • setExcludeListIds

      public void setExcludeListIds(@Nullable List<Long> excludeListIds)
    • templateId

      public CreateDoiContact templateId(@Nonnull Long templateId)
    • getTemplateId

      @Nonnull public Long getTemplateId()
      Id of the Double opt-in (DOI) template
      Returns:
      templateId
    • setTemplateId

      public void setTemplateId(@Nonnull Long templateId)
    • redirectionUrl

      public CreateDoiContact redirectionUrl(@Nonnull String redirectionUrl)
    • getRedirectionUrl

      @Nonnull public String getRedirectionUrl()
      URL of the web page that user will be redirected to after clicking on the double opt in URL. When editing your DOI template you can reference this URL by using the tag **{{ params.DOIurl }}**.
      Returns:
      redirectionUrl
    • setRedirectionUrl

      public void setRedirectionUrl(@Nonnull String redirectionUrl)
    • 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