@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class EmailPreview extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EmailPreview.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ATTACHMENTS |
static String |
SERIALIZED_NAME_BCC |
static String |
SERIALIZED_NAME_CC |
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_DOMAIN_ID |
static String |
SERIALIZED_NAME_FROM |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_READ |
static String |
SERIALIZED_NAME_SUBJECT |
static String |
SERIALIZED_NAME_TO |
Constructor and Description |
---|
EmailPreview() |
Modifier and Type | Method and Description |
---|---|
EmailPreview |
addAttachmentsItem(String attachmentsItem) |
EmailPreview |
addBccItem(String bccItem) |
EmailPreview |
addCcItem(String ccItem) |
EmailPreview |
addToItem(String toItem) |
EmailPreview |
attachments(List<String> attachments) |
EmailPreview |
bcc(List<String> bcc) |
EmailPreview |
cc(List<String> cc) |
EmailPreview |
createdAt(OffsetDateTime createdAt) |
EmailPreview |
domainId(UUID domainId) |
boolean |
equals(Object o) |
EmailPreview |
from(String from) |
static EmailPreview |
fromJson(String jsonString)
Create an instance of EmailPreview given an JSON string
|
List<String> |
getAttachments()
List of IDs of attachments found in the email.
|
List<String> |
getBcc()
List of `BCC` recipients email addresses that the email was addressed to.
|
List<String> |
getCc()
List of `CC` recipients email addresses that the email was addressed to.
|
OffsetDateTime |
getCreatedAt()
When was the email received by MailSlurp
|
UUID |
getDomainId()
ID of the domain that received the email
|
String |
getFrom()
Who the email was sent from.
|
UUID |
getId()
ID of the email entity
|
Boolean |
getRead()
Read flag.
|
String |
getSubject()
The subject line of the email message as specified by SMTP subject header
|
List<String> |
getTo()
List of `To` recipient email addresses that the email was addressed to.
|
int |
hashCode() |
EmailPreview |
id(UUID id) |
EmailPreview |
read(Boolean read) |
void |
setAttachments(List<String> attachments) |
void |
setBcc(List<String> bcc) |
void |
setCc(List<String> cc) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setDomainId(UUID domainId) |
void |
setFrom(String from) |
void |
setId(UUID id) |
void |
setRead(Boolean read) |
void |
setSubject(String subject) |
void |
setTo(List<String> to) |
EmailPreview |
subject(String subject) |
EmailPreview |
to(List<String> to) |
String |
toJson()
Convert an instance of EmailPreview 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
|
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_DOMAIN_ID
public static final String SERIALIZED_NAME_SUBJECT
public static final String SERIALIZED_NAME_TO
public static final String SERIALIZED_NAME_FROM
public static final String SERIALIZED_NAME_BCC
public static final String SERIALIZED_NAME_CC
public static final String SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_READ
public static final String SERIALIZED_NAME_ATTACHMENTS
public EmailPreview id(UUID id)
public void setId(UUID id)
public EmailPreview domainId(UUID domainId)
@Nullable public UUID getDomainId()
public void setDomainId(UUID domainId)
public EmailPreview subject(String subject)
@Nullable public String getSubject()
public void setSubject(String subject)
public EmailPreview to(List<String> to)
public EmailPreview addToItem(String toItem)
@Nullable public List<String> getTo()
public EmailPreview from(String from)
@Nullable public String getFrom()
public void setFrom(String from)
public EmailPreview bcc(List<String> bcc)
public EmailPreview addBccItem(String bccItem)
@Nullable public List<String> getBcc()
public EmailPreview cc(List<String> cc)
public EmailPreview addCcItem(String ccItem)
@Nullable public List<String> getCc()
public EmailPreview createdAt(OffsetDateTime createdAt)
@Nonnull public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public EmailPreview read(Boolean read)
@Nonnull public Boolean getRead()
public void setRead(Boolean read)
public EmailPreview attachments(List<String> attachments)
public EmailPreview addAttachmentsItem(String attachmentsItem)
@Nullable public List<String> getAttachments()
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to EmailPreviewpublic static EmailPreview fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to EmailPreviewpublic String toJson()
Copyright © 2023. All rights reserved.