@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Contact extends Object implements Serializable, Cloneable, StructuredPojo
A contact is the end-user who is receiving the email.
Constructor and Description |
---|
Contact() |
Modifier and Type | Method and Description |
---|---|
Contact |
clone() |
boolean |
equals(Object obj) |
String |
getEmailAddress()
The contact's email address.
|
Date |
getLastUpdatedTimestamp()
A timestamp noting the last time the contact's information was updated.
|
List<TopicPreference> |
getTopicDefaultPreferences()
The default topic preferences applied to the contact.
|
List<TopicPreference> |
getTopicPreferences()
The contact's preference for being opted-in to or opted-out of a topic.
|
Boolean |
getUnsubscribeAll()
A boolean value status noting if the contact is unsubscribed from all contact list topics.
|
int |
hashCode() |
Boolean |
isUnsubscribeAll()
A boolean value status noting if the contact is unsubscribed from all contact list topics.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEmailAddress(String emailAddress)
The contact's email address.
|
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
A timestamp noting the last time the contact's information was updated.
|
void |
setTopicDefaultPreferences(Collection<TopicPreference> topicDefaultPreferences)
The default topic preferences applied to the contact.
|
void |
setTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preference for being opted-in to or opted-out of a topic.
|
void |
setUnsubscribeAll(Boolean unsubscribeAll)
A boolean value status noting if the contact is unsubscribed from all contact list topics.
|
String |
toString()
Returns a string representation of this object.
|
Contact |
withEmailAddress(String emailAddress)
The contact's email address.
|
Contact |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
A timestamp noting the last time the contact's information was updated.
|
Contact |
withTopicDefaultPreferences(Collection<TopicPreference> topicDefaultPreferences)
The default topic preferences applied to the contact.
|
Contact |
withTopicDefaultPreferences(TopicPreference... topicDefaultPreferences)
The default topic preferences applied to the contact.
|
Contact |
withTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preference for being opted-in to or opted-out of a topic.
|
Contact |
withTopicPreferences(TopicPreference... topicPreferences)
The contact's preference for being opted-in to or opted-out of a topic.
|
Contact |
withUnsubscribeAll(Boolean unsubscribeAll)
A boolean value status noting if the contact is unsubscribed from all contact list topics.
|
public void setEmailAddress(String emailAddress)
The contact's email address.
emailAddress
- The contact's email address.public String getEmailAddress()
The contact's email address.
public Contact withEmailAddress(String emailAddress)
The contact's email address.
emailAddress
- The contact's email address.public List<TopicPreference> getTopicPreferences()
The contact's preference for being opted-in to or opted-out of a topic.
public void setTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preference for being opted-in to or opted-out of a topic.
topicPreferences
- The contact's preference for being opted-in to or opted-out of a topic.public Contact withTopicPreferences(TopicPreference... topicPreferences)
The contact's preference for being opted-in to or opted-out of a topic.
NOTE: This method appends the values to the existing list (if any). Use
setTopicPreferences(java.util.Collection)
or withTopicPreferences(java.util.Collection)
if you
want to override the existing values.
topicPreferences
- The contact's preference for being opted-in to or opted-out of a topic.public Contact withTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preference for being opted-in to or opted-out of a topic.
topicPreferences
- The contact's preference for being opted-in to or opted-out of a topic.public List<TopicPreference> getTopicDefaultPreferences()
The default topic preferences applied to the contact.
public void setTopicDefaultPreferences(Collection<TopicPreference> topicDefaultPreferences)
The default topic preferences applied to the contact.
topicDefaultPreferences
- The default topic preferences applied to the contact.public Contact withTopicDefaultPreferences(TopicPreference... topicDefaultPreferences)
The default topic preferences applied to the contact.
NOTE: This method appends the values to the existing list (if any). Use
setTopicDefaultPreferences(java.util.Collection)
or
withTopicDefaultPreferences(java.util.Collection)
if you want to override the existing values.
topicDefaultPreferences
- The default topic preferences applied to the contact.public Contact withTopicDefaultPreferences(Collection<TopicPreference> topicDefaultPreferences)
The default topic preferences applied to the contact.
topicDefaultPreferences
- The default topic preferences applied to the contact.public void setUnsubscribeAll(Boolean unsubscribeAll)
A boolean value status noting if the contact is unsubscribed from all contact list topics.
unsubscribeAll
- A boolean value status noting if the contact is unsubscribed from all contact list topics.public Boolean getUnsubscribeAll()
A boolean value status noting if the contact is unsubscribed from all contact list topics.
public Contact withUnsubscribeAll(Boolean unsubscribeAll)
A boolean value status noting if the contact is unsubscribed from all contact list topics.
unsubscribeAll
- A boolean value status noting if the contact is unsubscribed from all contact list topics.public Boolean isUnsubscribeAll()
A boolean value status noting if the contact is unsubscribed from all contact list topics.
public void setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
A timestamp noting the last time the contact's information was updated.
lastUpdatedTimestamp
- A timestamp noting the last time the contact's information was updated.public Date getLastUpdatedTimestamp()
A timestamp noting the last time the contact's information was updated.
public Contact withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
A timestamp noting the last time the contact's information was updated.
lastUpdatedTimestamp
- A timestamp noting the last time the contact's information was updated.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.