@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateContactRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateContactRequest() |
Modifier and Type | Method and Description |
---|---|
CreateContactRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAttributesData()
The attribute data attached to a contact.
|
String |
getContactListName()
The name of the contact list to which the contact should be added.
|
String |
getEmailAddress()
The contact's email address.
|
List<TopicPreference> |
getTopicPreferences()
The contact's preferences for being opted-in to or opted-out of topics.
|
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 |
setAttributesData(String attributesData)
The attribute data attached to a contact.
|
void |
setContactListName(String contactListName)
The name of the contact list to which the contact should be added.
|
void |
setEmailAddress(String emailAddress)
The contact's email address.
|
void |
setTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preferences for being opted-in to or opted-out of topics.
|
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.
|
CreateContactRequest |
withAttributesData(String attributesData)
The attribute data attached to a contact.
|
CreateContactRequest |
withContactListName(String contactListName)
The name of the contact list to which the contact should be added.
|
CreateContactRequest |
withEmailAddress(String emailAddress)
The contact's email address.
|
CreateContactRequest |
withTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preferences for being opted-in to or opted-out of topics.
|
CreateContactRequest |
withTopicPreferences(TopicPreference... topicPreferences)
The contact's preferences for being opted-in to or opted-out of topics.
|
CreateContactRequest |
withUnsubscribeAll(Boolean unsubscribeAll)
A boolean value status noting if the contact is unsubscribed from all contact list topics.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setContactListName(String contactListName)
The name of the contact list to which the contact should be added.
contactListName
- The name of the contact list to which the contact should be added.public String getContactListName()
The name of the contact list to which the contact should be added.
public CreateContactRequest withContactListName(String contactListName)
The name of the contact list to which the contact should be added.
contactListName
- The name of the contact list to which the contact should be added.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 CreateContactRequest withEmailAddress(String emailAddress)
The contact's email address.
emailAddress
- The contact's email address.public List<TopicPreference> getTopicPreferences()
The contact's preferences for being opted-in to or opted-out of topics.
public void setTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preferences for being opted-in to or opted-out of topics.
topicPreferences
- The contact's preferences for being opted-in to or opted-out of topics.public CreateContactRequest withTopicPreferences(TopicPreference... topicPreferences)
The contact's preferences for being opted-in to or opted-out of topics.
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 preferences for being opted-in to or opted-out of topics.public CreateContactRequest withTopicPreferences(Collection<TopicPreference> topicPreferences)
The contact's preferences for being opted-in to or opted-out of topics.
topicPreferences
- The contact's preferences for being opted-in to or opted-out of topics.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 CreateContactRequest 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 setAttributesData(String attributesData)
The attribute data attached to a contact.
attributesData
- The attribute data attached to a contact.public String getAttributesData()
The attribute data attached to a contact.
public CreateContactRequest withAttributesData(String attributesData)
The attribute data attached to a contact.
attributesData
- The attribute data attached to a contact.public String toString()
toString
in class Object
Object.toString()
public CreateContactRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()