Package com.mailersend.sms.webhooks
Class SmsWebhooks
- java.lang.Object
-
- com.mailersend.sms.webhooks.SmsWebhooks
-
public class SmsWebhooks extends Object
SmsWebhooks class.
- Version:
- $Id: $Id
- Author:
- mailersend
-
-
Constructor Summary
Constructors Constructor Description SmsWebhooks(MailerSend apiObjectRef)Do not initialize directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SmsWebhooksBuilderbuilder()Gets the builder that can be used to create or update webhooksbooleandeleteWebhook(String webhookId)Deletes a webhookSmsWebhookgetWebhook(String webhookId)Gets a single webhookSmsWebhookListgetWebhooks(String smsNumberId)Gets a list of webhooksSmsWebhookslimit(int limit)Set the results limit (10 - 100)SmsWebhooksBuildernewBuilder()newBuilder.SmsWebhookspage(int page)Set the page of the request
-
-
-
Constructor Detail
-
SmsWebhooks
public SmsWebhooks(MailerSend apiObjectRef)
Do not initialize directly. This should only be accessed from MailerSend.webhooks- Parameters:
apiObjectRef- aMailerSendobject.
-
-
Method Detail
-
page
public SmsWebhooks page(int page)
Set the page of the request- Parameters:
page- a int.- Returns:
- a
SmsWebhooksobject.
-
limit
public SmsWebhooks limit(int limit)
Set the results limit (10 - 100)- Parameters:
limit- a int.- Returns:
- a
SmsWebhooksobject.
-
getWebhooks
public SmsWebhookList getWebhooks(String smsNumberId) throws MailerSendException
Gets a list of webhooks- Parameters:
smsNumberId- aStringobject.- Returns:
- a
SmsWebhookListobject. - Throws:
MailerSendException
-
getWebhook
public SmsWebhook getWebhook(String webhookId) throws MailerSendException
Gets a single webhook- Parameters:
webhookId- aStringobject.- Returns:
- a
SmsWebhookobject. - Throws:
MailerSendException
-
deleteWebhook
public boolean deleteWebhook(String webhookId) throws MailerSendException
Deletes a webhook- Parameters:
webhookId- aStringobject.- Returns:
- a boolean.
- Throws:
MailerSendException
-
builder
public SmsWebhooksBuilder builder()
Gets the builder that can be used to create or update webhooks- Returns:
- a
SmsWebhooksBuilderobject.
-
newBuilder
public SmsWebhooksBuilder newBuilder()
newBuilder.
- Returns:
- a
SmsWebhooksBuilderobject.
-
-