![JAR search and dependency download from the Maven repository](/logo.png)
com.sforce.soap.tooling.metadata.EmailTemplate Maven / Gradle / Ivy
Show all versions of sforce-tooling-api Show documentation
package com.sforce.soap.tooling.metadata;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import com.sforce.soap.tooling.EmailTemplateStyle;
import com.sforce.soap.tooling.EmailTemplateType;
import com.sforce.soap.tooling.Encoding;
/**
* 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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EmailTemplate", propOrder = {
"apiVersion",
"attachedDocuments",
"attachments",
"available",
"description",
"encodingKey",
"letterhead",
"name",
"packageVersions",
"style",
"subject",
"textOnly",
"type"
})
public class EmailTemplate
extends Metadata
{
protected Double apiVersion;
protected List attachedDocuments;
protected List attachments;
protected boolean available;
protected String description;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected Encoding encodingKey;
protected String letterhead;
@XmlElement(required = true)
protected String name;
protected List packageVersions;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected EmailTemplateStyle style;
protected String subject;
protected String textOnly;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected EmailTemplateType type;
/**
* Gets the value of the apiVersion property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getApiVersion() {
return apiVersion;
}
/**
* Sets the value of the apiVersion property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setApiVersion(Double value) {
this.apiVersion = value;
}
/**
* Gets the value of the attachedDocuments property.
*
*
* 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
* {@link String }
*
*
*/
public List getAttachedDocuments() {
if (attachedDocuments == null) {
attachedDocuments = new ArrayList();
}
return this.attachedDocuments;
}
/**
* Gets the value of the attachments property.
*
*
* 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
* {@link Attachment }
*
*
*/
public List getAttachments() {
if (attachments == null) {
attachments = new ArrayList();
}
return this.attachments;
}
/**
* Gets the value of the available property.
*
*/
public boolean isAvailable() {
return available;
}
/**
* Sets the value of the available property.
*
*/
public void setAvailable(boolean value) {
this.available = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the encodingKey property.
*
* @return
* possible object is
* {@link Encoding }
*
*/
public Encoding getEncodingKey() {
return encodingKey;
}
/**
* Sets the value of the encodingKey property.
*
* @param value
* allowed object is
* {@link Encoding }
*
*/
public void setEncodingKey(Encoding value) {
this.encodingKey = value;
}
/**
* Gets the value of the letterhead property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLetterhead() {
return letterhead;
}
/**
* Sets the value of the letterhead property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLetterhead(String value) {
this.letterhead = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the packageVersions property.
*
*
* 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
* {@link PackageVersion }
*
*
*/
public List getPackageVersions() {
if (packageVersions == null) {
packageVersions = new ArrayList();
}
return this.packageVersions;
}
/**
* Gets the value of the style property.
*
* @return
* possible object is
* {@link EmailTemplateStyle }
*
*/
public EmailTemplateStyle getStyle() {
return style;
}
/**
* Sets the value of the style property.
*
* @param value
* allowed object is
* {@link EmailTemplateStyle }
*
*/
public void setStyle(EmailTemplateStyle value) {
this.style = value;
}
/**
* Gets the value of the subject property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSubject() {
return subject;
}
/**
* Sets the value of the subject property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSubject(String value) {
this.subject = value;
}
/**
* Gets the value of the textOnly property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTextOnly() {
return textOnly;
}
/**
* Sets the value of the textOnly property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTextOnly(String value) {
this.textOnly = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link EmailTemplateType }
*
*/
public EmailTemplateType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link EmailTemplateType }
*
*/
public void setType(EmailTemplateType value) {
this.type = value;
}
}