@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WebhookBouncePayload extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebhookBouncePayload.CustomTypeAdapterFactory |
static class |
WebhookBouncePayload.EventNameEnum
Name of the event type webhook is being triggered for.
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BOUNCE_ID |
static String |
SERIALIZED_NAME_BOUNCE_RECIPIENTS |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_MESSAGE_ID |
static String |
SERIALIZED_NAME_SENDER |
static String |
SERIALIZED_NAME_SENT_TO_RECIPIENTS |
static String |
SERIALIZED_NAME_WEBHOOK_ID |
static String |
SERIALIZED_NAME_WEBHOOK_NAME |
Constructor and Description |
---|
WebhookBouncePayload() |
Modifier and Type | Method and Description |
---|---|
WebhookBouncePayload |
addBounceRecipientsItem(String bounceRecipientsItem) |
WebhookBouncePayload |
addSentToRecipientsItem(String sentToRecipientsItem) |
WebhookBouncePayload |
bounceId(UUID bounceId) |
WebhookBouncePayload |
bounceRecipients(List<String> bounceRecipients) |
boolean |
equals(Object o) |
WebhookBouncePayload |
eventName(WebhookBouncePayload.EventNameEnum eventName) |
static WebhookBouncePayload |
fromJson(String jsonString)
Create an instance of WebhookBouncePayload given an JSON string
|
UUID |
getBounceId()
ID of the bounce email record.
|
List<String> |
getBounceRecipients()
Email addresses that resulted in a bounce or email being rejected.
|
WebhookBouncePayload.EventNameEnum |
getEventName()
Name of the event type webhook is being triggered for.
|
String |
getMessageId()
Idempotent message ID.
|
String |
getSender()
Sender causing bounce
|
List<String> |
getSentToRecipients()
Email sent to recipients
|
UUID |
getWebhookId()
ID of webhook entity being triggered
|
String |
getWebhookName()
Name of the webhook being triggered
|
int |
hashCode() |
WebhookBouncePayload |
messageId(String messageId) |
WebhookBouncePayload |
sender(String sender) |
WebhookBouncePayload |
sentToRecipients(List<String> sentToRecipients) |
void |
setBounceId(UUID bounceId) |
void |
setBounceRecipients(List<String> bounceRecipients) |
void |
setEventName(WebhookBouncePayload.EventNameEnum eventName) |
void |
setMessageId(String messageId) |
void |
setSender(String sender) |
void |
setSentToRecipients(List<String> sentToRecipients) |
void |
setWebhookId(UUID webhookId) |
void |
setWebhookName(String webhookName) |
String |
toJson()
Convert an instance of WebhookBouncePayload to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
WebhookBouncePayload |
webhookId(UUID webhookId) |
WebhookBouncePayload |
webhookName(String webhookName) |
public static final String SERIALIZED_NAME_MESSAGE_ID
public static final String SERIALIZED_NAME_WEBHOOK_ID
public static final String SERIALIZED_NAME_EVENT_NAME
public static final String SERIALIZED_NAME_WEBHOOK_NAME
public static final String SERIALIZED_NAME_BOUNCE_ID
public static final String SERIALIZED_NAME_SENT_TO_RECIPIENTS
public static final String SERIALIZED_NAME_SENDER
public static final String SERIALIZED_NAME_BOUNCE_RECIPIENTS
public WebhookBouncePayload messageId(String messageId)
@Nonnull public String getMessageId()
public void setMessageId(String messageId)
public WebhookBouncePayload webhookId(UUID webhookId)
@Nonnull public UUID getWebhookId()
public void setWebhookId(UUID webhookId)
public WebhookBouncePayload eventName(WebhookBouncePayload.EventNameEnum eventName)
@Nonnull public WebhookBouncePayload.EventNameEnum getEventName()
public void setEventName(WebhookBouncePayload.EventNameEnum eventName)
public WebhookBouncePayload webhookName(String webhookName)
@Nullable public String getWebhookName()
public void setWebhookName(String webhookName)
public WebhookBouncePayload bounceId(UUID bounceId)
@Nonnull public UUID getBounceId()
public void setBounceId(UUID bounceId)
public WebhookBouncePayload sentToRecipients(List<String> sentToRecipients)
public WebhookBouncePayload addSentToRecipientsItem(String sentToRecipientsItem)
@Nullable public List<String> getSentToRecipients()
public WebhookBouncePayload sender(String sender)
public void setSender(String sender)
public WebhookBouncePayload bounceRecipients(List<String> bounceRecipients)
public WebhookBouncePayload addBounceRecipientsItem(String bounceRecipientsItem)
@Nullable public List<String> getBounceRecipients()
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WebhookBouncePayloadpublic static WebhookBouncePayload fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WebhookBouncePayloadpublic String toJson()
Copyright © 2023. All rights reserved.