public class EmailPayload extends PushModelObject implements DevicePayloadOverride
Modifier and Type | Class and Description |
---|---|
static class |
EmailPayload.Builder
EmailPayload Builder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.lang.String> |
getAlert()
Optional, override the alert value provided at the top level, if any.
|
java.util.Optional<<any>> |
getAttachments()
Optional, Get the Attachment objects, each containing an id string which represents an email attachment.
|
java.util.Optional<java.lang.Boolean> |
getClickTracking()
Optional, Get the clickTracking value.
|
DeviceType |
getDeviceType()
Returns Devicetype: Email when requested
|
java.util.Optional<java.lang.String> |
getHtmlBody()
Optional, a string value for providing a the HTML body of the notification.
|
java.util.Optional<MessageType> |
getMessageType()
Optional, an enum of potential values representing the possible message types.
|
java.util.Optional<java.lang.Boolean> |
getOpenTracking()
Optional, Get the openTracking value.
|
java.util.Optional<java.lang.String> |
getPlaintextBody()
Optional, a string value for providing a the plaintext Body of the notification.
|
java.util.Optional<java.lang.String> |
getReplyTo()
Optional, a string representing the "reply to" address of the notification.
|
java.util.Optional<java.lang.String> |
getSenderAddress()
Optional, a string representing the address of the sender.
|
java.util.Optional<java.lang.String> |
getSenderName()
Optional, a string representing the name of the sender.
|
java.util.Optional<java.lang.String> |
getSubject()
Optional, a string representing the subject of the notification.
|
java.util.Optional<EmailTemplate> |
getTemplate() |
java.util.Optional<java.lang.String> |
getUaAddress()
Optional, a string representing the reserved UA email address of the sender for Create and Send.
|
int |
hashCode() |
static EmailPayload.Builder |
newBuilder() |
java.lang.String |
toString() |
toJSON
toJSON
public static EmailPayload.Builder newBuilder()
public DeviceType getDeviceType()
getDeviceType
in interface DevicePayloadOverride
public java.util.Optional<java.lang.String> getAlert()
getAlert
in interface DevicePayloadOverride
public java.util.Optional<java.lang.String> getSubject()
public java.util.Optional<java.lang.String> getHtmlBody()
public java.util.Optional<java.lang.String> getPlaintextBody()
public java.util.Optional<MessageType> getMessageType()
public java.util.Optional<java.lang.String> getSenderName()
public java.util.Optional<java.lang.String> getSenderAddress()
public java.util.Optional<java.lang.String> getUaAddress()
public java.util.Optional<java.lang.String> getReplyTo()
public java.util.Optional<<any>> getAttachments()
public java.util.Optional<EmailTemplate> getTemplate()
public java.util.Optional<java.lang.Boolean> getClickTracking()
public java.util.Optional<java.lang.Boolean> getOpenTracking()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object