Class UpdateEmailCampaignRecipients

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

public class UpdateEmailCampaignRecipients extends Object
Segment ids and List ids to include/exclude from campaign
  • Field Details

  • Constructor Details

    • UpdateEmailCampaignRecipients

      public UpdateEmailCampaignRecipients()
  • Method Details

    • exclusionListIds

      public UpdateEmailCampaignRecipients exclusionListIds(@Nullable List<Long> exclusionListIds)
    • addExclusionListIdsItem

      public UpdateEmailCampaignRecipients addExclusionListIdsItem(Long exclusionListIdsItem)
    • getExclusionListIds

      @Nullable public List<Long> getExclusionListIds()
      List ids which have to be excluded from a campaign
      Returns:
      exclusionListIds
    • setExclusionListIds

      public void setExclusionListIds(@Nullable List<Long> exclusionListIds)
    • listIds

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

      public UpdateEmailCampaignRecipients addListIdsItem(Long listIdsItem)
    • getListIds

      @Nullable public List<Long> getListIds()
      Lists Ids to send the campaign to. **Campaign should only be updated with listIds if listIds were used to create it. REQUIRED if already not present in campaign and scheduledAt is not empty**
      Returns:
      listIds
    • setListIds

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

      public UpdateEmailCampaignRecipients segmentIds(@Nullable List<Long> segmentIds)
    • addSegmentIdsItem

      public UpdateEmailCampaignRecipients addSegmentIdsItem(Long segmentIdsItem)
    • getSegmentIds

      @Nullable public List<Long> getSegmentIds()
      **Mandatory if listIds are not used. Campaign should only be updated with segmentIds if segmentIds were used to create it.** Segment ids to send the campaign to.
      Returns:
      segmentIds
    • setSegmentIds

      public void setSegmentIds(@Nullable List<Long> segmentIds)
    • exclusionSegmentIds

      public UpdateEmailCampaignRecipients exclusionSegmentIds(@Nullable List<Long> exclusionSegmentIds)
    • addExclusionSegmentIdsItem

      public UpdateEmailCampaignRecipients addExclusionSegmentIdsItem(Long exclusionSegmentIdsItem)
    • getExclusionSegmentIds

      @Nullable public List<Long> getExclusionSegmentIds()
      Segment ids which have to be excluded from a campaign.
      Returns:
      exclusionSegmentIds
    • setExclusionSegmentIds

      public void setExclusionSegmentIds(@Nullable List<Long> exclusionSegmentIds)
    • 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