Package com.mailersend.sdk.recipients
Class Suppressions
- java.lang.Object
-
- com.mailersend.sdk.recipients.Suppressions
-
public class Suppressions extends Object
Suppressions class.
- Version:
- $Id: $Id
- Author:
- mailersend
-
-
Constructor Summary
Constructors Constructor Description Suppressions(MailerSend ref)Do not initialize directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SuppressionAddBuilderaddBuilder()Get the suppression add builderMailerSendResponsedeleteBlocklistAllItems()Deletes all items from the blocklistMailerSendResponsedeleteBlocklistItems(String[] ids)Deletes the items with the given id from the blocklistMailerSendResponsedeleteHardBouncesAllItems()Deletes all items from the hard bounces suppression listMailerSendResponsedeleteHardBouncesItems(String[] ids)Deletes the items with the given id from the hard bounces suppression listMailerSendResponsedeleteSpamComplaintsAllItems()Deletes all items from the spam complaints suppression listMailerSendResponsedeleteSpamComplaintsItems(String[] ids)Deletes the items with the given id from the spam complaints suppression listMailerSendResponsedeleteUnsubscribesAllItems()Deletes all items from the unsubscribes suppression listMailerSendResponsedeleteUnsubscribesItems(String[] ids)Deletes the items with the given id from the unsubscribes suppression listSuppressionsdomainId(String domainId)Set the domain IDBlocklistListResponsegetBlocklist()Gets the recipients in a blocklist of an account or domainSuppressionListgetHardBounces()Gets the recipients that hard bouncedSuppressionListgetSpamComplaints()Gets the spam complaintsSuppressionListgetUnsubscribes()Gets the unsubscribesSuppressionslimit(int limit)Set the results limit (10 - 100)Suppressionspage(int page)Set the page of the request
-
-
-
Constructor Detail
-
Suppressions
public Suppressions(MailerSend ref)
Do not initialize directly. This should only be accessed from MailerSend.analytics- Parameters:
ref- aMailerSendobject.
-
-
Method Detail
-
addBuilder
public SuppressionAddBuilder addBuilder()
Get the suppression add builder- Returns:
- a
SuppressionAddBuilderobject.
-
page
public Suppressions page(int page)
Set the page of the request- Parameters:
page- a int.- Returns:
- a
Suppressionsobject.
-
limit
public Suppressions limit(int limit)
Set the results limit (10 - 100)- Parameters:
limit- a int.- Returns:
- a
Suppressionsobject.
-
domainId
public Suppressions domainId(String domainId)
Set the domain ID- Parameters:
domainId- aStringobject.- Returns:
- a
Suppressionsobject.
-
getBlocklist
public BlocklistListResponse getBlocklist() throws MailerSendException
Gets the recipients in a blocklist of an account or domain- Returns:
- a
BlocklistListResponseobject. - Throws:
MailerSendException
-
getHardBounces
public SuppressionList getHardBounces() throws MailerSendException
Gets the recipients that hard bounced- Returns:
- a
SuppressionListobject. - Throws:
MailerSendException
-
getSpamComplaints
public SuppressionList getSpamComplaints() throws MailerSendException
Gets the spam complaints- Returns:
- a
SuppressionListobject. - Throws:
MailerSendException
-
getUnsubscribes
public SuppressionList getUnsubscribes() throws MailerSendException
Gets the unsubscribes- Returns:
- a
SuppressionListobject. - Throws:
MailerSendException
-
deleteBlocklistItems
public MailerSendResponse deleteBlocklistItems(String[] ids) throws MailerSendException
Deletes the items with the given id from the blocklist- Parameters:
ids- an array ofStringobjects.- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
deleteBlocklistAllItems
public MailerSendResponse deleteBlocklistAllItems() throws MailerSendException
Deletes all items from the blocklist- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
deleteHardBouncesItems
public MailerSendResponse deleteHardBouncesItems(String[] ids) throws MailerSendException
Deletes the items with the given id from the hard bounces suppression list- Parameters:
ids- an array ofStringobjects.- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
deleteHardBouncesAllItems
public MailerSendResponse deleteHardBouncesAllItems() throws MailerSendException
Deletes all items from the hard bounces suppression list- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
deleteSpamComplaintsItems
public MailerSendResponse deleteSpamComplaintsItems(String[] ids) throws MailerSendException
Deletes the items with the given id from the spam complaints suppression list- Parameters:
ids- an array ofStringobjects.- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
deleteSpamComplaintsAllItems
public MailerSendResponse deleteSpamComplaintsAllItems() throws MailerSendException
Deletes all items from the spam complaints suppression list- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
deleteUnsubscribesItems
public MailerSendResponse deleteUnsubscribesItems(String[] ids) throws MailerSendException
Deletes the items with the given id from the unsubscribes suppression list- Parameters:
ids- an array ofStringobjects.- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
deleteUnsubscribesAllItems
public MailerSendResponse deleteUnsubscribesAllItems() throws MailerSendException
Deletes all items from the unsubscribes suppression list- Returns:
- a
MailerSendResponseobject. - Throws:
MailerSendException
-
-