@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EmailInsights extends Object implements Serializable, Cloneable, StructuredPojo
An email's insights contain metadata and delivery information about a specific email.
| Constructor and Description |
|---|
EmailInsights() |
| Modifier and Type | Method and Description |
|---|---|
EmailInsights |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The recipient of the email.
|
List<InsightsEvent> |
getEvents()
A list of events associated with the sent email.
|
String |
getIsp()
The recipient's ISP (e.g.,
Gmail, Yahoo, etc.). |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDestination(String destination)
The recipient of the email.
|
void |
setEvents(Collection<InsightsEvent> events)
A list of events associated with the sent email.
|
void |
setIsp(String isp)
The recipient's ISP (e.g.,
Gmail, Yahoo, etc.). |
String |
toString()
Returns a string representation of this object.
|
EmailInsights |
withDestination(String destination)
The recipient of the email.
|
EmailInsights |
withEvents(Collection<InsightsEvent> events)
A list of events associated with the sent email.
|
EmailInsights |
withEvents(InsightsEvent... events)
A list of events associated with the sent email.
|
EmailInsights |
withIsp(String isp)
The recipient's ISP (e.g.,
Gmail, Yahoo, etc.). |
public void setDestination(String destination)
The recipient of the email.
destination - The recipient of the email.public String getDestination()
The recipient of the email.
public EmailInsights withDestination(String destination)
The recipient of the email.
destination - The recipient of the email.public void setIsp(String isp)
The recipient's ISP (e.g., Gmail, Yahoo, etc.).
isp - The recipient's ISP (e.g., Gmail, Yahoo, etc.).public String getIsp()
The recipient's ISP (e.g., Gmail, Yahoo, etc.).
Gmail, Yahoo, etc.).public EmailInsights withIsp(String isp)
The recipient's ISP (e.g., Gmail, Yahoo, etc.).
isp - The recipient's ISP (e.g., Gmail, Yahoo, etc.).public List<InsightsEvent> getEvents()
A list of events associated with the sent email.
public void setEvents(Collection<InsightsEvent> events)
A list of events associated with the sent email.
events - A list of events associated with the sent email.public EmailInsights withEvents(InsightsEvent... events)
A list of events associated with the sent email.
NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection) or withEvents(java.util.Collection) if you want to override the
existing values.
events - A list of events associated with the sent email.public EmailInsights withEvents(Collection<InsightsEvent> events)
A list of events associated with the sent email.
events - A list of events associated with the sent email.public String toString()
toString in class ObjectObject.toString()public EmailInsights clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.