@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WebhookNewSmsPayload extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebhookNewSmsPayload.CustomTypeAdapterFactory |
static class |
WebhookNewSmsPayload.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_BODY |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_FROM_NUMBER |
static String |
SERIALIZED_NAME_MESSAGE_ID |
static String |
SERIALIZED_NAME_PHONE_NUMBER |
static String |
SERIALIZED_NAME_READ |
static String |
SERIALIZED_NAME_SMS_ID |
static String |
SERIALIZED_NAME_TO_NUMBER |
static String |
SERIALIZED_NAME_USER_ID |
static String |
SERIALIZED_NAME_WEBHOOK_ID |
static String |
SERIALIZED_NAME_WEBHOOK_NAME |
Constructor and Description |
---|
WebhookNewSmsPayload() |
Modifier and Type | Method and Description |
---|---|
WebhookNewSmsPayload |
body(String body) |
boolean |
equals(Object o) |
WebhookNewSmsPayload |
eventName(WebhookNewSmsPayload.EventNameEnum eventName) |
static WebhookNewSmsPayload |
fromJson(String jsonString)
Create an instance of WebhookNewSmsPayload given an JSON string
|
WebhookNewSmsPayload |
fromNumber(String fromNumber) |
String |
getBody()
SMS message body
|
WebhookNewSmsPayload.EventNameEnum |
getEventName()
Name of the event type webhook is being triggered for.
|
String |
getFromNumber()
Sender phone number
|
String |
getMessageId()
Idempotent message ID.
|
UUID |
getPhoneNumber()
ID of phone number receiving SMS
|
Boolean |
getRead()
SMS has been read
|
UUID |
getSmsId()
ID of SMS message
|
String |
getToNumber()
Recipient phone number
|
UUID |
getUserId()
User ID of event
|
UUID |
getWebhookId()
ID of webhook entity being triggered
|
String |
getWebhookName()
Name of the webhook being triggered
|
int |
hashCode() |
WebhookNewSmsPayload |
messageId(String messageId) |
WebhookNewSmsPayload |
phoneNumber(UUID phoneNumber) |
WebhookNewSmsPayload |
read(Boolean read) |
void |
setBody(String body) |
void |
setEventName(WebhookNewSmsPayload.EventNameEnum eventName) |
void |
setFromNumber(String fromNumber) |
void |
setMessageId(String messageId) |
void |
setPhoneNumber(UUID phoneNumber) |
void |
setRead(Boolean read) |
void |
setSmsId(UUID smsId) |
void |
setToNumber(String toNumber) |
void |
setUserId(UUID userId) |
void |
setWebhookId(UUID webhookId) |
void |
setWebhookName(String webhookName) |
WebhookNewSmsPayload |
smsId(UUID smsId) |
String |
toJson()
Convert an instance of WebhookNewSmsPayload to an JSON string
|
WebhookNewSmsPayload |
toNumber(String toNumber) |
String |
toString() |
WebhookNewSmsPayload |
userId(UUID userId) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
WebhookNewSmsPayload |
webhookId(UUID webhookId) |
WebhookNewSmsPayload |
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_SMS_ID
public static final String SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_PHONE_NUMBER
public static final String SERIALIZED_NAME_TO_NUMBER
public static final String SERIALIZED_NAME_FROM_NUMBER
public static final String SERIALIZED_NAME_BODY
public static final String SERIALIZED_NAME_READ
public WebhookNewSmsPayload messageId(String messageId)
@Nonnull public String getMessageId()
public void setMessageId(String messageId)
public WebhookNewSmsPayload webhookId(UUID webhookId)
@Nonnull public UUID getWebhookId()
public void setWebhookId(UUID webhookId)
public WebhookNewSmsPayload eventName(WebhookNewSmsPayload.EventNameEnum eventName)
@Nonnull public WebhookNewSmsPayload.EventNameEnum getEventName()
public void setEventName(WebhookNewSmsPayload.EventNameEnum eventName)
public WebhookNewSmsPayload webhookName(String webhookName)
@Nullable public String getWebhookName()
public void setWebhookName(String webhookName)
public WebhookNewSmsPayload smsId(UUID smsId)
public void setSmsId(UUID smsId)
public WebhookNewSmsPayload userId(UUID userId)
public void setUserId(UUID userId)
public WebhookNewSmsPayload phoneNumber(UUID phoneNumber)
@Nonnull public UUID getPhoneNumber()
public void setPhoneNumber(UUID phoneNumber)
public WebhookNewSmsPayload toNumber(String toNumber)
public void setToNumber(String toNumber)
public WebhookNewSmsPayload fromNumber(String fromNumber)
public void setFromNumber(String fromNumber)
public WebhookNewSmsPayload body(String body)
public void setBody(String body)
public WebhookNewSmsPayload read(Boolean read)
public void setRead(Boolean read)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WebhookNewSmsPayloadpublic static WebhookNewSmsPayload fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WebhookNewSmsPayloadpublic String toJson()
Copyright © 2023. All rights reserved.