public class EmailTemplate extends Metadata
Java class for EmailTemplate complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="EmailTemplate">
<complexContent>
<extension base="{urn:metadata.tooling.soap.sforce.com}Metadata">
<sequence>
<element name="apiVersion" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
<element name="attachedDocuments" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="attachments" type="{urn:metadata.tooling.soap.sforce.com}Attachment" maxOccurs="unbounded" minOccurs="0"/>
<element name="available" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="encodingKey" type="{urn:tooling.soap.sforce.com}Encoding"/>
<element name="letterhead" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="packageVersions" type="{urn:metadata.tooling.soap.sforce.com}PackageVersion" maxOccurs="unbounded" minOccurs="0"/>
<element name="style" type="{urn:tooling.soap.sforce.com}EmailTemplateStyle"/>
<element name="subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="textOnly" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="type" type="{urn:tooling.soap.sforce.com}EmailTemplateType"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Double |
apiVersion |
protected List<String> |
attachedDocuments |
protected List<Attachment> |
attachments |
protected boolean |
available |
protected String |
description |
protected Encoding |
encodingKey |
protected String |
letterhead |
protected String |
name |
protected List<PackageVersion> |
packageVersions |
protected EmailTemplateStyle |
style |
protected String |
subject |
protected String |
textOnly |
protected EmailTemplateType |
type |
| Constructor and Description |
|---|
EmailTemplate() |
| Modifier and Type | Method and Description |
|---|---|
Double |
getApiVersion()
Gets the value of the apiVersion property.
|
List<String> |
getAttachedDocuments()
Gets the value of the attachedDocuments property.
|
List<Attachment> |
getAttachments()
Gets the value of the attachments property.
|
String |
getDescription()
Gets the value of the description property.
|
Encoding |
getEncodingKey()
Gets the value of the encodingKey property.
|
String |
getLetterhead()
Gets the value of the letterhead property.
|
String |
getName()
Gets the value of the name property.
|
List<PackageVersion> |
getPackageVersions()
Gets the value of the packageVersions property.
|
EmailTemplateStyle |
getStyle()
Gets the value of the style property.
|
String |
getSubject()
Gets the value of the subject property.
|
String |
getTextOnly()
Gets the value of the textOnly property.
|
EmailTemplateType |
getType()
Gets the value of the type property.
|
boolean |
isAvailable()
Gets the value of the available property.
|
void |
setApiVersion(Double value)
Sets the value of the apiVersion property.
|
void |
setAvailable(boolean value)
Sets the value of the available property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setEncodingKey(Encoding value)
Sets the value of the encodingKey property.
|
void |
setLetterhead(String value)
Sets the value of the letterhead property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setStyle(EmailTemplateStyle value)
Sets the value of the style property.
|
void |
setSubject(String value)
Sets the value of the subject property.
|
void |
setTextOnly(String value)
Sets the value of the textOnly property.
|
void |
setType(EmailTemplateType value)
Sets the value of the type property.
|
protected Double apiVersion
protected List<Attachment> attachments
protected boolean available
protected String description
protected Encoding encodingKey
protected String letterhead
protected String name
protected List<PackageVersion> packageVersions
protected EmailTemplateStyle style
protected String subject
protected String textOnly
protected EmailTemplateType type
public Double getApiVersion()
Doublepublic void setApiVersion(Double value)
value - allowed object is
Doublepublic List<String> getAttachedDocuments()
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 attachedDocuments property.
For example, to add a new item, do as follows:
getAttachedDocuments().add(newItem);
Objects of the following type(s) are allowed in the list
String
public List<Attachment> getAttachments()
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 attachments property.
For example, to add a new item, do as follows:
getAttachments().add(newItem);
Objects of the following type(s) are allowed in the list
Attachment
public boolean isAvailable()
public void setAvailable(boolean value)
public String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic Encoding getEncodingKey()
Encodingpublic void setEncodingKey(Encoding value)
value - allowed object is
Encodingpublic String getLetterhead()
Stringpublic void setLetterhead(String value)
value - allowed object is
Stringpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic List<PackageVersion> getPackageVersions()
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 packageVersions property.
For example, to add a new item, do as follows:
getPackageVersions().add(newItem);
Objects of the following type(s) are allowed in the list
PackageVersion
public EmailTemplateStyle getStyle()
EmailTemplateStylepublic void setStyle(EmailTemplateStyle value)
value - allowed object is
EmailTemplateStylepublic String getSubject()
Stringpublic void setSubject(String value)
value - allowed object is
Stringpublic String getTextOnly()
Stringpublic void setTextOnly(String value)
value - allowed object is
Stringpublic EmailTemplateType getType()
EmailTemplateTypepublic void setType(EmailTemplateType value)
value - allowed object is
EmailTemplateTypeCopyright © 2016. All rights reserved.