public class Template extends AbstractModel
Constructor and Description |
---|
Template() |
Template(Template source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getTemplateData()
Get Variable parameters in the template.
|
Long |
getTemplateID()
Get Template ID.
|
void |
setTemplateData(String TemplateData)
Set Variable parameters in the template.
|
void |
setTemplateID(Long TemplateID)
Set Template ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Template()
public Template(Template source)
public Long getTemplateID()
public void setTemplateID(Long TemplateID)
TemplateID
- Template ID. If you don’t have any template, please create one.public String getTemplateData()
public void setTemplateData(String TemplateData)
TemplateData
- Variable parameters in the template. Please use `json.dump` to format the JSON object into a string type. The object is a set of key-value pairs. Each key denotes a variable, which is represented by {{key}}. The key will be replaced with the corresponding value (represented by {{value}}) when sending the email.Copyright © 2021. All rights reserved.