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, setPartnerKey
protected 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()
String
public void setEmailAddress(String value)
value
- allowed object is
String
public 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()
String
public void setSubscriberKey(String value)
value
- allowed object is
String
public Date getUnsubscribedDate()
String
public void setUnsubscribedDate(Date value)
value
- allowed object is
String
public SubscriberStatus getStatus()
SubscriberStatus
public void setStatus(SubscriberStatus value)
value
- allowed object is
SubscriberStatus
public String getPartnerType()
String
public void setPartnerType(String value)
value
- allowed object is
String
public EmailType getEmailTypePreference()
EmailType
public void setEmailTypePreference(EmailType value)
value
- allowed object is
EmailType
public 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()
GlobalUnsubscribeCategory
public void setGlobalUnsubscribeCategory(GlobalUnsubscribeCategory value)
value
- allowed object is
GlobalUnsubscribeCategory
public SubscriberTypeDefinition getSubscriberTypeDefinition()
SubscriberTypeDefinition
public void setSubscriberTypeDefinition(SubscriberTypeDefinition value)
value
- allowed object is
SubscriberTypeDefinition
public Subscriber.Addresses getAddresses()
Subscriber.Addresses
public void setAddresses(Subscriber.Addresses value)
value
- allowed object is
Subscriber.Addresses
public SMSAddress getPrimarySMSAddress()
SMSAddress
public void setPrimarySMSAddress(SMSAddress value)
value
- allowed object is
SMSAddress
public SubscriberAddressStatus getPrimarySMSPublicationStatus()
SubscriberAddressStatus
public void setPrimarySMSPublicationStatus(SubscriberAddressStatus value)
value
- allowed object is
SubscriberAddressStatus
public EmailAddress getPrimaryEmailAddress()
EmailAddress
public void setPrimaryEmailAddress(EmailAddress value)
value
- allowed object is
EmailAddress
public Locale getLocale()
Locale
public void setLocale(Locale value)
value
- allowed object is
Locale
Copyright © 2017. All rights reserved.