public class Subscriber extends APIObject
Java class for Subscriber complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Subscriber">
<complexContent>
<extension base="{http://exacttarget.com/wsdl/partnerAPI}APIObject">
<sequence>
<element name="EmailAddress" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Attributes" type="{http://exacttarget.com/wsdl/partnerAPI}Attribute" maxOccurs="unbounded" minOccurs="0"/>
<element name="SubscriberKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="UnsubscribedDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="Status" type="{http://exacttarget.com/wsdl/partnerAPI}SubscriberStatus" minOccurs="0"/>
<element name="PartnerType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="EmailTypePreference" type="{http://exacttarget.com/wsdl/partnerAPI}EmailType" minOccurs="0"/>
<element name="Lists" type="{http://exacttarget.com/wsdl/partnerAPI}SubscriberList" maxOccurs="unbounded" minOccurs="0"/>
<element name="GlobalUnsubscribeCategory" type="{http://exacttarget.com/wsdl/partnerAPI}GlobalUnsubscribeCategory" minOccurs="0"/>
<element name="SubscriberTypeDefinition" type="{http://exacttarget.com/wsdl/partnerAPI}SubscriberTypeDefinition" minOccurs="0"/>
<element name="Addresses" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Address" type="{http://exacttarget.com/wsdl/partnerAPI}SubscriberAddress" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="PrimarySMSAddress" type="{http://exacttarget.com/wsdl/partnerAPI}SMSAddress" minOccurs="0"/>
<element name="PrimarySMSPublicationStatus" type="{http://exacttarget.com/wsdl/partnerAPI}SubscriberAddressStatus" minOccurs="0"/>
<element name="PrimaryEmailAddress" type="{http://exacttarget.com/wsdl/partnerAPI}EmailAddress" minOccurs="0"/>
<element name="Locale" type="{http://exacttarget.com/wsdl/partnerAPI}Locale" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
Subscriber.Addresses
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected Subscriber.Addresses |
addresses |
protected List<Attribute> |
attributes |
protected String |
emailAddress |
protected EmailType |
emailTypePreference |
protected GlobalUnsubscribeCategory |
globalUnsubscribeCategory |
protected List<SubscriberList> |
lists |
protected Locale |
locale |
protected String |
partnerType |
protected EmailAddress |
primaryEmailAddress |
protected SMSAddress |
primarySMSAddress |
protected SubscriberAddressStatus |
primarySMSPublicationStatus |
protected SubscriberStatus |
status |
protected String |
subscriberKey |
protected SubscriberTypeDefinition |
subscriberTypeDefinition |
protected Date |
unsubscribedDate |
client, correlationID, createdDate, customerKey, id, modifiedDate, objectID, objectState, owner, partnerKey, partnerProperties| Constructor and Description |
|---|
Subscriber() |
| Modifier and Type | Method and Description |
|---|---|
Subscriber.Addresses |
getAddresses()
Gets the value of the addresses property.
|
List<Attribute> |
getAttributes()
Gets the value of the attributes property.
|
String |
getEmailAddress()
Gets the value of the emailAddress property.
|
EmailType |
getEmailTypePreference()
Gets the value of the emailTypePreference property.
|
GlobalUnsubscribeCategory |
getGlobalUnsubscribeCategory()
Gets the value of the globalUnsubscribeCategory property.
|
List<SubscriberList> |
getLists()
Gets the value of the lists property.
|
Locale |
getLocale()
Gets the value of the locale property.
|
String |
getPartnerType()
Gets the value of the partnerType property.
|
EmailAddress |
getPrimaryEmailAddress()
Gets the value of the primaryEmailAddress property.
|
SMSAddress |
getPrimarySMSAddress()
Gets the value of the primarySMSAddress property.
|
SubscriberAddressStatus |
getPrimarySMSPublicationStatus()
Gets the value of the primarySMSPublicationStatus property.
|
SubscriberStatus |
getStatus()
Gets the value of the status property.
|
String |
getSubscriberKey()
Gets the value of the subscriberKey property.
|
SubscriberTypeDefinition |
getSubscriberTypeDefinition()
Gets the value of the subscriberTypeDefinition property.
|
Date |
getUnsubscribedDate()
Gets the value of the unsubscribedDate property.
|
void |
setAddresses(Subscriber.Addresses value)
Sets the value of the addresses property.
|
void |
setEmailAddress(String value)
Sets the value of the emailAddress property.
|
void |
setEmailTypePreference(EmailType value)
Sets the value of the emailTypePreference property.
|
void |
setGlobalUnsubscribeCategory(GlobalUnsubscribeCategory value)
Sets the value of the globalUnsubscribeCategory property.
|
void |
setLocale(Locale value)
Sets the value of the locale property.
|
void |
setPartnerType(String value)
Sets the value of the partnerType property.
|
void |
setPrimaryEmailAddress(EmailAddress value)
Sets the value of the primaryEmailAddress property.
|
void |
setPrimarySMSAddress(SMSAddress value)
Sets the value of the primarySMSAddress property.
|
void |
setPrimarySMSPublicationStatus(SubscriberAddressStatus value)
Sets the value of the primarySMSPublicationStatus property.
|
void |
setStatus(SubscriberStatus value)
Sets the value of the status property.
|
void |
setSubscriberKey(String value)
Sets the value of the subscriberKey property.
|
void |
setSubscriberTypeDefinition(SubscriberTypeDefinition value)
Sets the value of the subscriberTypeDefinition property.
|
void |
setUnsubscribedDate(Date value)
Sets the value of the unsubscribedDate property.
|
String |
toString()
Generates a String representation of the contents of this type.
|
getClient, getCorrelationID, getCreatedDate, getCustomerKey, getId, getModifiedDate, getObjectID, getObjectState, getOwner, getPartnerKey, getPartnerProperties, setClient, setCorrelationID, setCreatedDate, setCustomerKey, setId, setModifiedDate, setObjectID, setObjectState, setOwner, setPartnerKeyprotected String emailAddress
protected String subscriberKey
protected Date unsubscribedDate
protected SubscriberStatus status
protected String partnerType
protected EmailType emailTypePreference
protected List<SubscriberList> lists
protected GlobalUnsubscribeCategory globalUnsubscribeCategory
protected SubscriberTypeDefinition subscriberTypeDefinition
protected Subscriber.Addresses addresses
protected SMSAddress primarySMSAddress
protected SubscriberAddressStatus primarySMSPublicationStatus
protected EmailAddress primaryEmailAddress
protected Locale locale
public String getEmailAddress()
Stringpublic void setEmailAddress(String value)
value - allowed object is
Stringpublic List<Attribute> getAttributes()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the attributes property.
For example, to add a new item, do as follows:
getAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
Attribute
public String getSubscriberKey()
Stringpublic void setSubscriberKey(String value)
value - allowed object is
Stringpublic Date getUnsubscribedDate()
Stringpublic void setUnsubscribedDate(Date value)
value - allowed object is
Stringpublic SubscriberStatus getStatus()
SubscriberStatuspublic void setStatus(SubscriberStatus value)
value - allowed object is
SubscriberStatuspublic String getPartnerType()
Stringpublic void setPartnerType(String value)
value - allowed object is
Stringpublic EmailType getEmailTypePreference()
EmailTypepublic void setEmailTypePreference(EmailType value)
value - allowed object is
EmailTypepublic List<SubscriberList> getLists()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the lists property.
For example, to add a new item, do as follows:
getLists().add(newItem);
Objects of the following type(s) are allowed in the list
SubscriberList
public GlobalUnsubscribeCategory getGlobalUnsubscribeCategory()
GlobalUnsubscribeCategorypublic void setGlobalUnsubscribeCategory(GlobalUnsubscribeCategory value)
value - allowed object is
GlobalUnsubscribeCategorypublic SubscriberTypeDefinition getSubscriberTypeDefinition()
SubscriberTypeDefinitionpublic void setSubscriberTypeDefinition(SubscriberTypeDefinition value)
value - allowed object is
SubscriberTypeDefinitionpublic Subscriber.Addresses getAddresses()
Subscriber.Addressespublic void setAddresses(Subscriber.Addresses value)
value - allowed object is
Subscriber.Addressespublic SMSAddress getPrimarySMSAddress()
SMSAddresspublic void setPrimarySMSAddress(SMSAddress value)
value - allowed object is
SMSAddresspublic SubscriberAddressStatus getPrimarySMSPublicationStatus()
SubscriberAddressStatuspublic void setPrimarySMSPublicationStatus(SubscriberAddressStatus value)
value - allowed object is
SubscriberAddressStatuspublic EmailAddress getPrimaryEmailAddress()
EmailAddresspublic void setPrimaryEmailAddress(EmailAddress value)
value - allowed object is
EmailAddresspublic Locale getLocale()
Localepublic void setLocale(Locale value)
value - allowed object is
LocaleCopyright © 2017. All rights reserved.