public class MailResponse extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_BODY |
static String |
SERIALIZED_NAME_FROM |
static String |
SERIALIZED_NAME_LABELS |
static String |
SERIALIZED_NAME_READ |
static String |
SERIALIZED_NAME_RECIPIENTS |
static String |
SERIALIZED_NAME_SUBJECT |
static String |
SERIALIZED_NAME_TIMESTAMP |
| Constructor and Description |
|---|
MailResponse() |
| Modifier and Type | Method and Description |
|---|---|
MailResponse |
addLabelsItem(Integer labelsItem) |
MailResponse |
addRecipientsItem(Recipient recipientsItem) |
MailResponse |
body(String body) |
boolean |
equals(Object o) |
MailResponse |
from(Integer from) |
String |
getBody()
Mail's body
|
Integer |
getFrom()
From whom the mail was sent
|
List<Integer> |
getLabels()
Labels attached to the mail
|
Boolean |
getRead()
Whether the mail is flagged as read
|
List<Recipient> |
getRecipients()
Recipients of the mail
|
String |
getSubject()
Mail subject
|
java.time.OffsetDateTime |
getTimestamp()
When the mail was sent
|
int |
hashCode() |
MailResponse |
labels(List<Integer> labels) |
MailResponse |
read(Boolean read) |
MailResponse |
recipients(List<Recipient> recipients) |
void |
setBody(String body) |
void |
setFrom(Integer from) |
void |
setLabels(List<Integer> labels) |
void |
setRead(Boolean read) |
void |
setRecipients(List<Recipient> recipients) |
void |
setSubject(String subject) |
void |
setTimestamp(java.time.OffsetDateTime timestamp) |
MailResponse |
subject(String subject) |
MailResponse |
timestamp(java.time.OffsetDateTime timestamp) |
String |
toString() |
public static final String SERIALIZED_NAME_READ
public static final String SERIALIZED_NAME_RECIPIENTS
public static final String SERIALIZED_NAME_SUBJECT
public static final String SERIALIZED_NAME_FROM
public static final String SERIALIZED_NAME_BODY
public static final String SERIALIZED_NAME_LABELS
public static final String SERIALIZED_NAME_TIMESTAMP
public MailResponse read(Boolean read)
public Boolean getRead()
public void setRead(Boolean read)
public MailResponse recipients(List<Recipient> recipients)
public MailResponse addRecipientsItem(Recipient recipientsItem)
public MailResponse subject(String subject)
public String getSubject()
public void setSubject(String subject)
public MailResponse from(Integer from)
public Integer getFrom()
public void setFrom(Integer from)
public MailResponse body(String body)
public String getBody()
public void setBody(String body)
public MailResponse labels(List<Integer> labels)
public MailResponse addLabelsItem(Integer labelsItem)
public MailResponse timestamp(java.time.OffsetDateTime timestamp)
public java.time.OffsetDateTime getTimestamp()
public void setTimestamp(java.time.OffsetDateTime timestamp)
Copyright © 2019. All Rights Reserved.